/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* in functions.php */ function show_posts_nav() { global $wp_query; return ($wp_query->max_num_pages > 1); } /* in template */ <?php if (show_posts_nav()) : ?> <div id="nav-above" class="navigation">...</div> <?php endif; ?>
Comments
