Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Post Navigation within a Category (How To)


Question

Posted · Report post

All,

After searching a bit, I put together a bit of code that allows the Post Nav to stay within it's category. All you need to do is open the file wp-content > themes > pagelines > sections > sections.php and;

Change this:


<div class="post-nav fix">

<span class="previous"><?php previous_post_link('%link') ?></span>

<span class="next"><?php next_post_link('%link') ?></span>

</div>	

To this:

<div class="post-nav fix">

<span class="previous"> <?php previous_post_link('%link', '%title', TRUE); ?> </span>

<span class="next"> <?php next_post_link('%link', '%title', TRUE); ?> </span>

</div>

Remember that if you update the framework, this will be overwritten.

HTH

~ Rat

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

Thanks for sharing :D

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites