Problem:
Your documentation says "Only limited values are supported for meta_compare ('=' | 'LIKE'). "
Does this means > < comparison operators are not allowed? https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_get_related_posts
Solution:
Yes, you are right, it means > < comparison operators are not allowed. But you can try with WordPress built-in class WP_Query, add post type relationship parameter "toolset_relationships", see our document: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/how-to-migrate-your-site-to-new-post-relationships/#advanced-example
section "Advanced example"
In the above codes, you can follow WP document to setup the post meta comparison operators:
https://developer.wordpress.org/reference/classes/wp_query/#custom-field-post-meta-parameters
Relevant Documentation:
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/Hong_Kong (GMT+08:00)