Forums
-
- Forum
- Posts
-
- Installation
- 28,257
- Troubleshooting
- 61,768
- Themes
- 10,301
- Plugins
- 15,220
- Requests & Feedback
- 14,825
- Showcase
- 3,253
-
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