How to have next/prev Page links in custom page template?
Hi all,
I have a custom page template like the following, which shows posts formatted in a particular way (this is done in do_something). But with this page template, the next/prev page links are not showing, even if I put bfa_next_previous_page_links() inside. How should next/prev Page links be displayed when using a page template? <?php /* Template Name: Archives */ ?> <?php include (TEMPLATEPATH . '/functions/bfa_get_options.php'); get_header(); if (have_posts()) { $bfa_ata['postcount'] == 0; bfa_center_content($bfa_ata['content_above_loop']); do_something(); bfa_center_content($bfa_ata['content_below_loop']); // Even this doesn't work bfa_next_previous_page_links(); } else { bfa_center_content($bfa_ata['content_not_found']); } bfa_center_content($bfa_ata['center_content_bottom']); get_footer(); ?> |
use index.php as your template, you are missing some of the globals that are needed
|
All times are GMT -6. The time now is 04:00 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.