[Resolved] Use Toolset Date field in Advanced Post Query
This support ticket is created 2 years, 2 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.
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.
I have installed the Advanced Post Queries plugin as I need to filter the Elementor Posts Widget so only current and/or future posts are visible based on the Toolset CF "datum-infomoment" (date event).
However, the settings you see in the screenshot show up empty.
Hi Shane,
Thank you for picking this up so quickly. It seems I am trying to do 2 things Elementor can't do natively in the Posts Widget:
- Order posts by Toolset Custom Date Field
- Filter posts by Toolset Custom Date Field
To Filter out the 'past' events I have the Advanced Post Queries plugin but I can only enter a Custom Field Name (wpcf-datum-infomoment). I cannot define that as date or number in the settings.
To Order the posts, I am trying to use the Elementor Custom Query function (maybe I should do both exclude and order via the custom query)
I know I can make my custom view which offers both order and filter quite easily, but then I can't style the output using Elementor Loop / Elementor Custom Skin.
The Order By has Date by Default, other options are Title, Menu Order, Random. None of these work for me. Custom Field is unfortunately not an option there.
The code you provided does not change anything about the Order 🙁
It seems to have no impact whatsoever, even if I add