Forums
-
- Forum
- Posts
-
- Installation
- 27,643
- Troubleshooting
- 60,588
- Themes
- 10,192
- Plugins
- 14,981
- Requests & Feedback
- 14,610
- Showcase
- 3,238
-
Because the loop relies on the $topics
global being set by the base index.php file.
$topics = get_latest_topics(false, $page);
You can add this to your template if you like just above that loop, to make sure $topics is always available…
if ( !isset( $topics ) ) {
$topics = get_latest_topics( false, 1 ); // Only fetch the first page
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS