Skip Navigation

[Resolved] next and previous

This support ticket is created 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by kayser 3 years, 9 months ago.

Assisted by: Waqar.

Author
Posts
#1952225

Hello
as an example
hidden link
this artist has 5 books and I would like the previous book and the next book to be his.
I tried with this and couldn't do it.
https://toolset.com/forums/topic/how-to-show-next-previous-child-post/
Can you tell me the right way to do this?
guy

#1953307

Hi,

Thank you for contacting us and I'd be happy to assist.

The post navigation on the page seems to be coming from the Astra theme. If it uses standard WordPress next and previous post link functionality, you can use the "get_next_post_where" and "get_previous_post_where" filters:

You'll find a good example snippet in this reply:
https://wordpress.stackexchange.com/a/228867

Note: if this filter doesn't work, it would mean that the theme uses some customized code for the post navigation and it would be best to consult its official support team, in that case.

regards,
Waqar

#1958049

My issue is resolved now. Thank you!