Forums
-
- Forum
- Posts
-
- Installation
- 28,420
- Troubleshooting
- 62,484
- Themes
- 10,419
- Plugins
- 15,336
- Requests & Feedback
- 14,958
- Showcase
- 3,256
-
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
}