I just started using the latest version of ACF with Block support and I love it!
I made a custom block that pulls in data from related pages and it is working great. However, on those pages, I want to query for posts that are related. If I were using a regular Post Object field, I’d just do a WP_Query for my post_type and a meta_query for that custom field to see if it contains this post’s ID.
How would I write a query like that to target the field inside of a custom block?
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users