Missing Older Post Link
-
Hey I’m using a child theme of Twenty Eleven to implement the Showcase feature. I’m really new to PHP but I am familiar with some HTML basics. The showcase and everything else is working fine but the older post section at the bottom is missing.
This is my index.php file. I added the <?php posts_nav_link(); ?> after <?php endif; ?> and it did nothing.
get_header(); ?>
<div id=”primary”>
<div id=”content” role=”main”><?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( ‘nav-above’ ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<article id=”post-0″ class=”post no-results not-found”>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘twentyeleven’ ); ?></h1>
</header><!– .entry-header –><div class=”entry-content”>
<p><?php _e( ‘Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.’, ‘twentyeleven’ ); ?></p>
<?php get_search_form(); ?>
</div><!– .entry-content –>
</article><!– #post-0 –><?php endif; ?>
<?php posts_nav_link(); ?></div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>
- The topic ‘Missing Older Post Link’ is closed to new replies.