[Resolved] How do I add a link to the next post within the same category?
This support ticket is created 7 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to: add a link to the next post within the same category in a content template
I visited this URL: hidden link
Example: a visitor is reading a "Deal Story" (custom post type) in the category of "Consulting" (custom taxonomy). I would like to add a link within the content template here that takes the reader to the next Deal Story within that category. And if the Deal Story were in another category, the link should be for the next Deal Story within that category.
I'm sure it's simple, I just haven't been able to figure it out.
Hello. Thank you for contacting the Toolset support.
I reviewed the post URL you shared with me and I can see that it's single post page where you would like to add pagination links. Basically, single post pagination should be provided by the theme.
View's will allow you to create a LIST of your Posts and then, you can paginate that list.
But you can not paginate from one single Post to the next with a single CPT page. This needs to be provided by the Theme.
Thank you, Minesh. Those links were very helpful. I was able to insert the previous and next link area into the Deal Stories template with the following function from the example you shared:
Thank you for the additional assistance, Minesh. Unfortunately it still isn't working for me, but I don't think this is a Toolset issue anymore so I don't want to take up more of your time on basic WordPress and PHP.
I'll keep working on it, but we can go ahead and close this thread. Thanks again.
This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.