Archived

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

  • 0

Question About Postnav

Question

Posted · Report post

Hello.

 

Is it possible to make  PostNav stay within the same post category?

Share this post


Link to post
Share on other sites

5 answers to this question

Posted · Report post

Edit section.php in the postnav section directoy and replace the relevant part with

 

 

<span class="previous"><?php previous_post_link('%link', $link='%title', $in_same_cat = true); ?></span>
               <span class="next"><?php next_post_link('%link', $link='%title', $in_same_cat = true); ?></span>

 

You could of course also add that updated section folder in the base child theme if you don't want to loose this edit with each upgrade of pagelines.

Share this post


Link to post
Share on other sites

Posted · Report post

The proper method is to download a normal section (one of the built in sections) found in wp-content/themes/pagelines/sections to your local computer via FTP.

 

Edit the sections.php file in the folder you just downloaded to your local computer.

 

Then, go to the base theme by FTP.  Add a new folder called sections (you can create this with your FTP client). Upload the entire folder for the section you downloaded from /pagelines/sections to your local computer and edited. 

 

Your edited version will now be in the base theme.

Share this post


Link to post
Share on other sites

Posted · Report post

You might want to try a different WP plugin, like maybe NavXT breadcrumbs. Check it out on Wordpress and if you decide to use it, here is the NavXT PageLines integration.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for the reply, Jenny.

 

I like the way PostNav displays the next/previous post links, I just want them to stay within the same category.

 

Anyway, If it is not possible, I can live with it :)

Share this post


Link to post
Share on other sites

Posted · Report post

If you're looking at a category page it will react in this way, but not on the standard blogroll unfortunately. You might need to look into a custom plugin which could offer this functionality otherwise as Jenny suggested :-)

Share this post


Link to post
Share on other sites