Sauter la navigation

[Résolu] Function toolset_get_related_posts not accepting arguments

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

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)

Ce sujet contient 2 réponses, a 3 voix.

Dernière mise à jour par Beda Il y a 6 années et 6 mois.

Assisté par: 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.