How to Sort a Query Loop by an ACF Date Field using GenerateBlocks
HTML-код
- Опубликовано: 12 сен 2024
- In this video, I walk you through the steps to sort your Query Loop block by date, according to an ACF field.
Here's the Documentation mentioned in the video: docs.generateb...
Check out Template Tags: snippetclub.co...
--
💡Learn More about GenerateBlocks: generateblocks...
📰 Become a Design to Dollars subscriber & receive design tips that make cents: adamwrightdesi...
🖥️ My business site: adamwrightdesi...
🖥️ My personal site: heyadamwright.com
📧 Get in touch: hello@adamwrightdesign.com
💙 If you enjoyed this video, please consider helping support by Subscribing to my channel and Liking the video above!
🙌 Thanks for your support!
Thanks! Big help!
Thank you exactly what i was looking for 🙏
Awesome!
thanks Adam!.
As always your tutorials are practical and solve problems.
Don't take so long with the next one 😄
Haha thanks, Jose! I'm on it!
Great stuff Adam, this is going to help a lot for an upcoming project!
Thanks Jake!! Glad to hear it!
I had a little trouble getting "custom order" to work (per the GB documentation). Turns out that I hadn't included the field in Query Loop. Super obvious on reflection but caused a frustrating few hours so adding it here for others to benefit. You can then simply hide that field use "hide on mobile", "hide on desktop" & "hide on tablet".
Thanks for this clear tutorial! I'm curious - how do you sort the query loop by 2 custom fields? For example - when you need to sort by date, then time.... using 2 different custom fields (a date picker and a time picker).
Very good question! I would totally reach out to GenerateBlocks support, as they could probably provide a solution and amendment to their code.
Epic man! This is gonna help so many people!
Thank you! 🙌 Yea, it is something that's so much simpler to achieve than I ever thought!
This is great! I've been searching for a way to do this for months now. Thanks, Adam! And, yes, @KyleVanDeusen, it's helping me -- I'm the so many people! lol
For me this doesnt work because I dont have the possibility to add a parameter on my bricks UI. Im not even 100% sure you are talking about a query loop in bricks and since I dont see the upload date of the video I dont have a chance to check whether you might be talking about an old version of bricks or acf.
This is aimed at GenerateBlocks and ACF, all recent up to date versions at the time of the video.