Skip Navigation

[Résolu] Function toolset_get_related_posts not accepting arguments

This support ticket is created Il y a 5 années et 9 mois. 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.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 réponses, has 3 voix.

Last updated by Beda Il y a 5 années et 9 mois.

Assisted by: Beda.

Auteur
Publications
#921042

OK, that looks like it should work- thanks. Where do I submit a feature request?

#921044

In Types function toolset_get_related_posts(), argument "orderby" accepts only below values:
null, ‘title’, ‘meta_value’, ‘meta_value_num’,
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts

The client is going to add a feature request:
order the results by "post_date" and other native post fields, for example:
https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters

#921071

Thanks for the request.

I have filed it, and will push this to the Developers with priority, to (mainly) assess the work needed to implement this.

I then hope we can add the features as soon as possible.

We can close the ticket here as you will be either notified by a update, or blog post.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.