Jump to content
Sign in to follow this  
vergilst

Question About Postnav

Recommended Posts

vergilst    1
vergilst

Hello.

 

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

Share this post


Link to post
Share on other sites
vergilst    1
vergilst

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
James B    436
James B

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 :-)


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
sgendry    1
sgendry

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×