Home › Forums › ACF PRO › Using ACF Pro to create Posts Grid › Reply To: Using ACF Pro to create Posts Grid
Thank you very much for your reply.
Sorry if my question was not clear enough.
I am not after a “front end” functionality.
I am trying to use the “advanced example in this tutorial but in a different way:
In this example, the function searches for posts that have custom fields populated with “red” and “orange”, and returns an array of them.
This will be fine for a small scale, but i am trying to replace more that 400 grids. this means 400 function like this.
I already achieved putting 2 multi select taxonomy ACFs. one for categories and one for tags.
What I am trying to to is to alter the function in the tutorial to say:
– inspect the taxonomy IDs in the 2 fields of the post i am editing
– query the database based on these taxonomy IDs
– return an array.
That way, i have only one function, and change the values per post, and get the corresponding array.
then we worry about how to show them as a grid.
Please advise if you need more information.
Very much appreciated.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.