Skip Navigation

[Resolved] I need previous and next links on singlepages to follow the menu order

This support ticket is created 6 years, 11 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.

Our next available supporter will start replying to tickets in about 1.75 hours from now. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#598141

Tell us what you are trying to do?
I need previous and next links on single pages to follow the menu order instead of the post date(The archive is sorted by menu order, i need the previous next links on the single-pages to follow this same order)

Is there any documentation that you are following?
I could not find anything on this topic.

Is there a similar example that we can see?

What is the link to your site?

#598267

Dear Glenn,

I assume we are talking about the Views shortcode [wpv-post-previous-link] and [wpv-post-next-link], see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-previous-link
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-next-link

There isn't such a option to achieve what you want:
previous and next links on single pages to follow the menu order

And I checked the source code of Views plugin, the shortcode [wpv-post-previous-link] is using wordpress function previous_post_link() to get the previous post link:
https://codex.wordpress.org/Function_Reference/previous_post_link
According to above document:
Used on single post permalink pages, this template tag displays a link to the previous post which exists in chronological order from the current post.
There isn't the feature "follow the menu order" too, so in your case it needs custom code, you can contact our "Toolset Contractors" for it:
https://toolset.com/contractors/

And if you agree, we can take it as a feature request, our developers will evaluate it.

#600221

Hi Luo,

thank you for your awnser. I will see of if i can make a hook. I do think it would be good to make this a feature in an upcoming release, since you want the previous/next links to follow the order of the archive page.

KInd regards,

Glenn

#600378

As your request, I forward it to Beda, he manages the feature request of Views plugin, our developers will evaluate it