Jump to content
Sign in to follow this  
The Farside

How to make Postnav specific to category?

Recommended Posts

The Farside    1
The Farside

I'm looking for a way to make the postnav area category specific, instead of showing posts from all categories. I've looked through wordpress.org and I have been unable to find the code that needs to be changed which I read would be in single.php. Could anyone help me figure out what I need to change?

Share this post


Link to post
Share on other sites
The Farside    1
The Farside

I seem to have figured it out, but if this is wrong or if there is another way, let me know. Here is what I've done in the sections directory for postnav section.php

<?php previous_post_link('%link', $link='%title', $in_same_cat = true); ?>
				<?php next_post_link('%link', $link='%title', $in_same_cat = true); ?>[/code]

  • Like 1

Share this post


Link to post
Share on other sites
Rob    547
Rob

Did you place this edited section inside Base Child Theme, or did you edit directly in PageLines Framework sections?


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
The Farside    1
The Farside

I know nothing about a Base child theme, so I edited directly into the Pagelines framework sections directory, which I know means I will have to update with each new release and until I find out what the base child theme is...that will be fine.. HAHA I'm not new to wordpress, but I am to frameworks all together. Thus far Pagelines has been very nice to work with & learn.

Share this post


Link to post
Share on other sites
The Farside    1
The Farside

Thanks for the heads up, Catrina! I installed the base theme and copied the postnav section directory into the sections directory of the base theme.

Share this post


Link to post
Share on other sites
basmati    4
basmati

@parabased - thanks, thats what i was just looking for :)

  • Like 1

Share this post


Link to post
Share on other sites
The Farside    1
The Farside

@parabased - thanks, thats what i was just looking for :)

 

Good to know someone else found the information useful!

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  

×