Jump to content


Photo
- - - - -

Question About Postnav


This topic has been archived. This means that you cannot reply to this topic.
5 replies to this topic

#1 vergilst

vergilst

    Advanced Member

  • Members
  • 33 posts

Posted 30 November 2012 - 05:01 PM

Hello.

 

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



#2 Jenny†

Jenny

    Advocate

  • DMS Subscriber†
  • 2924 posts

Posted 30 November 2012 - 06:07 PM

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

Please Login or Register to see this Hidden Content

.



#3 vergilst

vergilst

    Advanced Member

  • Members
  • 33 posts

Posted 30 November 2012 - 07:58 PM

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



#4 James B†

James B

    Advocate

  • DMS Subscriber†
  • 5126 posts

Posted 01 December 2012 - 12:02 AM

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



#5 sgendry

sgendry

    Advanced Member

  • Members
  • 79 posts

Posted 22 May 2013 - 06:02 PM

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.



#6 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts

Posted 22 May 2013 - 06:10 PM

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.