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 »

Page Navigation and Comments not showing with Code


 
Prev Previous Post   Next Post Next
  #1  
Old Jan 17, 2010, 09:45 PM
sleizure
 
13 posts · May 2009
Page Navigation and Comments not showing with Code

Hello, I've gone against the grain, and have a static Homepage configured showing recent posts, and gallery photos. I have my Journal Link located at http://www.tiredofit.ca/journal/

I am loading Journal.php via the template function with the following code

PHP Code:
<?php
/*
Template Name: Journal
*/
?> 
<?php // get all options:
include (TEMPLATEPATH '/functions/bfa_get_options.php');

get_header(); ?>
    <?php // Displayed on MULTI post pages if activated at Theme Options -> Next/Previous Navigation:
    
bfa_next_previous_page_links('Top'); // To edit the output, see functions/bfa_next_previous_links.php ?>

<?php
//detect a set series of posts per page
$ppp get_option('posts_per_page');
 
// initial page fourteen posts
if (!is_paged()) {
    
$posts get_posts('numberposts=1&cat=-23&order=DESC&orderby=date');
// second page with offset
} elseif($paged == 2) {
    
$posts get_posts('offset=5');
// all alternative pages with settings from backend
} else {
    
$offset $ppp*($paged-2)+5;
    
$posts get_posts('offset='.$offset);
}
 
if(
$posts) :
    foreach (
$posts as $post) :
     
setup_postdata($post);
                
next_post_link();
     
?>

      <div>

<font size="4.2pt"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <?php the_title(); ?></a></font> &nbsp;&nbsp;&nbsp;   <font size="0.2pt" text-align="right"><?php the_date(); ?> <?php the_time(); ?>-  <?php the_author(); ?></font></p> 
 <?php the_content(); ?>

  </div>

 <?php endforeach;
 endif 
?></td>
 
 <?php // Displayed on MULTI post pages if activated at Theme Options -> Next/Previous Navigation:
    
bfa_next_previous_page_links('Bottom'); // To edit the output, see functions/bfa_next_previous_links.php ?>

            <?php // Load Comments template (on single post pages, and "Page" pages, if set on options page)
        
bfa_get_comments(); // To edit the output, see functions/bfa_post_parts.php ?>


 <?php get_footer(); ?>
Which works fine, showing the last post without issue, but does not show page navigation or the comments. I have just upgraded to 3.45 to see if I could get it working but it still doesn't. On a logistics / navigation end its a nightmare as my users are looking for the back and forth links. How would I add this back in, or am I just being overly complicated with trying to show my latest post?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Showing Logo Next To Page Menu Navigation? mannitol Page & Category Menu Bars 6 Jul 28, 2011 10:43 AM
Header Drop Down Navigation (Where to insert the code) rockport Header configuration & styling 7 Nov 15, 2010 07:57 PM
[SOLVED] Atahualpa options code not showing bushtool New Versions, & Updating 13 Oct 22, 2009 01:01 PM
Inline Comments - I have code, but the comments aren't displaying thekaitlin Comments, trackbacks & pings 0 Jul 29, 2009 02:28 PM
Archives not working, comments not showing and a page question ! aliferste Comments, trackbacks & pings 8 Dec 14, 2008 03:16 AM


All times are GMT -6. The time now is 11:12 AM.


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