-
Cheezballz
I have a custom ACF field for a custom post type (also via ACF). The field has only 2 options, and I’d like to filter the query using the field’s parameters. Is this possible with a snippet, since post meta isn’t an option for Query Loops?
Edit: an alternate possibility is using a different custom field that contains a date in Ymd format. The query would show the custom posts if the date is before or after today’s date.
-
Hi there,
Does this help? https://docs.generateblocks.com/article/order-query-loop-by-custom-field/
Let me know 🙂
-
Cheezballz
Sorry, I was so busy last night that I didn’t have a chance to respond. I found this & it put me on the right track: https://generate.support/topic/filter-query-loop-on-custom-meta/
Are there any docs on
generateblocks_query_loop_args
and any other functions available for custom coding? -
If you search
generateblocks_query_loop_args
in this forum, you should be able to see lots of them 🙂 -
Cheezballz
Thanks, that I know. I was wondering if y’all had any official documentation, like the WP Codex has for functions.
-
We don’t have a full doc for this, unfortunately.
The filter can be modified in too many ways depending on different needs, it’s too difficult to write the doc.
We currently have these 2:
https://docs.generateblocks.com/article/add-multiple-post-types-in-one-query-loop/
https://docs.generateblocks.com/article/order-query-loop-by-custom-field/Hope that’s helpful.
- You must be logged in to reply to this topic.