Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   How to have next/prev Page links in custom page template? (http://forum.bytesforall.com/showthread.php?t=10005)

bongo Oct 1, 2010 01:53 AM

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();
?>

juggledad Oct 1, 2010 05:28 AM

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.