<<Older Entries<< link not working in Page Template
-
I was hoping someone would be able to help me with this re: https://kalooz.com/what-im-watching/humor/
I created my site with a Home landing page – https://kalooz.com. I have created Page Templates based off of my Categories and Tags, thus whatever I post to my blog (not showing) will fill these Pages based on Category and Tag (as seen in my navigation bar across the top). I used the Main Index Template (index.php) as my template for both Category and Tag template pages (I will include the file at the end of this post). Everything seems to work perfectly for me, except at the bottom of the page (for example: https://kalooz.com/what-im-watching/humor/) when you click on <<Older Entries<<, the page will only refresh and show current posts.
Is there a way to fix this so clicking on this <<Older Entries<< will actually take it to the previous entries page filled with previous posts contained in these Categories and Tags?
Here is the Main Index Template (index.php) – I believe this is where I need to add language to fix my problem (the BOLD is mine – this is where I believe my problem is/can be fixed):
<?php get_header(); ?>
<?php sy_pre_content(); ?>
<div id=”content”><?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”post” id=”post-<?php the_ID(); ?>”>
<h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2><div class=”entry”>
<?php the_content(‘Read the rest of this entry »’); ?>
</div><p class=”postmetadata”>
<?php if ($sy->option[‘show_tags_in_home’]) {
the_tags(‘Tags: ‘, ‘, ‘, ‘
‘);
}
?> Posted
<?php the_time(‘F jS, Y’) ?> in <?php the_category(‘, ‘) ?>
<?php if ($sy->option[‘show_author_in_home’]) { ?> By
<?php the_author_posts_link(); ?>
<?php } ?>
|
<?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?>
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
</p>
</div><?php endwhile; ?>
<div class=”navigation”>
<div class=”alignleft”><?php next_posts_link(‘« Older Entries «’) ?></div>
<div class=”alignright”><?php previous_posts_link(‘» Newer Entries »’) ?></div>
</div><?php else : ?>
<h2 class=”center”>Not Found</h2>
<p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
<?php include (TEMPLATEPATH . “/searchform.php”); ?><?php endif; ?>
</div><!– content –>
<?php sy_post_content(); ?>
<?php get_footer(); ?>
- The topic ‘<<Older Entries<< link not working in Page Template’ is closed to new replies.