Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

How to have next/prev Page links in custom page template?


  #1  
Old Oct 1, 2010, 02:53 AM
bongo
 
9 posts · Jan 2010
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();
?>
  #2  
Old Oct 1, 2010, 06:28 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
use index.php as your template, you are missing some of the globals that are needed
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
next/previous navigation, template



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: a 'Custom Query' PAGE template juggledad Atahualpa 3 Wordpress theme 1 Jul 15, 2010 07:07 PM


All times are GMT -6. The time now is 12:09 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.