Having issues with the PostNav section. I'm using it on custom post types with your Docker plugin, but on the first and last post of each Post Type, it displays the previous post and next post as a clone, so there are two of the same one. You can see it on the following link:
Dear Pagelines team, leafing through the Forums, I found an old solution to a problem I am facing: How to make the PostNav section include posts from the same category only? This is the suggested fix:
BEST ANSWER The Farside, 14 August 2012 - 04:06 AM
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
<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>
I found the postnav section.php (wp-content/themes/dms/dms/sections/navbar). Do I just add the above code? And would it still be valid in DMS2 (it's ancient - from 2012!) I am hesitant as I am always afraid to break things when dealing with PHP. Or is there another way, a plugin or child theme that lets me add this in a safer way (and one that may withstand upgrades)?
Thank you for your help and advice. It is always a pleasure working with Pagelines, every day! I should say that more often, but of course yet again it is only when there is a problem that I get in touch...
Yours faithfully, Jan.
I have been able to add PostNav to individual Post pages, but when I attempt to add it to the bottom of a Category or Tag page, I'm unable. The PostNav icon is greyed out, so I'm assuming that it's not allowed. I just can't figure out why it would not be allowed.
Any help would be appreciated.
Hi, I would like to know if there is a way to change the 'postnav' section to display a selection of pages in the same way it does posts.
This will allow my user to flick through similar pages within a group.