This is a bit of a work around, but you could create a Post Meta Block with the Block API, which simply sets a post meta value for a post.
Then you could add this block every time you add your ACF custom block, enabling you to query all posts with the ACF custom block.
This tutorial is a great place to start: https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/metabox/meta-block-1-intro/
Edit: You could also add an ACF-Field on post_type level, which is a lot easier. Set it to not allow null and it wouldn’t be possible to forget this field.
Related Posts:
- Problem making a WPQuery with ACF boolean
- What’s wrong with this meta query? (order by meta key, then title, doesn’t work)
- Order (by ASC) posts with meta_key so posts without values are last
- How can I modify the query by adding to the existing query?
- wp query to use both author id and meta_query
- Custom Meta Query doesn’t work the same on two site
- Search filter between promo and exact price
- meta_query with meta values as serialize arrays
- ElasticPress is (aparently) messing with my search filters
- meta_query – check for multiple meta values in key which holds an array of values
- WP Query – grouping posts by same meta key, adding together values from another key
- Woocommerce Get Orders By Meta Value
- WP_Query for a taxonomy value OR a custom post type meta field
- Meta query ignores multiple values of the key
- meta_query is overriding default search
- Trouble with serialized metadata
- Multiple WP_Query args combinations according to post type
- WordPress Meta Query Null Values Order
- Multiple meta_query not returning rows
- WP_Query multiple value not working
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- meta_query order by date present -> future then show null
- show most viewed post
- Searching for a specific month in a metadata saved as Timestamp (Wp_Query)
- Query for current post
- WordPress Query custom ordering by temporary variable
- Check for not NULL not working in meta query
- Custom query to retrieve oldest post and retrieve others with date interval
- Comparing Meta Field date in WPQuery using Meta_Query?
- Meta query orderby meta_value_num sorting by role first
- WP_User_Query Orderby Not Working
- Get unique post by meta value using wp_query
- Why can my filter query SOME metadata but not other metadata?
- Getting posts by custom field value
- How to create better WP_Query to look for date time which is anywhere between two meta values?
- Query against multiple locations within single custom post type post
- Unusual high query of user meta data
- Very slow query generated getting meta data from posts
- WP_Query on custom key and value
- WordPress Query optimaization for slow query
- WP_Query, ACF field and array
- Get posts having meta value between two numbers
- wordpress multiple meta value query is not working
- Strange results from WP_Query
- How to set meta_query if get_post_meta returns nested array for that key? [duplicate]
- Pre get posts sort by meta key returns no results if meta key does not exist
- Order by Date Custom Field
- How to filter on placeholder image
- Sorting with meta_query and multiple, optional meta keys
- Filtering WP_Query based on wp_postmeta keys values
- WP Query. Ordering posts by another post types meta
- meta_query compare > not working
- Complex Meta Query
- meta_query with relation = AND not working as expected when combining EQUALS with NOT EQUALS
- Slow wp_posts and wp_postmeta query using Advance Custom Fields
- WP Query for Multiple Post Types
- Multiple meta_query not working
- Query by meta value (add a dropdown of all values)
- Meta query doesn’t remove placeholder escape before query
- compare for multiple meta values for same key in wp_query
- Order Posts By Custom Field That is an array of objects
- datetime picker, timestamps and meta queries
- meta_query is not allowing to show posts when querying multiple arguments in a WP_Query
- WP_Query with meta_query won’t orderby
- WP Query Meta Query
- meta_query only check if both value are set
- Speed up WP_query with meta comparing dates
- Meta Query if Values Don’t Exist
- Orderby query does not work for custom fields even with meta query
- Get posts meta_query by repater field
- Query 3 meta_key and orderby
- wp_query sorting – one specific meta_key value at last and then sort by create date
- Query custom meta value – post view and date meta
- What is the best way to reset a search on a meta_key / meta_value?
- Saving custom fields for WP_Query to retrieve
- Slow query when selecting with large meta query or post__in
- How can I modify standard search query to include also ACF custom fields values?
- make query more simplest and in one query
- Custom WP_query and integrating into theme file
- How to show all the associated posts with specific date of data metabox?
- WP_Query – show posts where meta value and user_email match
- WP Meta Query at depth 2
- Best way to Order Post in Home without a plugin
- WP_Query returns empty if meta_query has more than 7 values
- Is it possible to search for a string in posts OR postmeta?
- Extending WP Query: Custom geolocation meta values work, but tax_query breaks
- meta_query not working with the_content()
- WP_Query using meta_query with LIKE doesn’t return what it should
- Using custom field as ‘orderby’ value causing post grouping by publish date
- Use not custom fields in get_posts() meta_query?
- Filter posts/pages by user_role array
- WP_Query with MetaQuery issue
- WP_Query Posts by Metadata from Option Tree
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- Compare meta key separation
- WordPress meta_query not working
- Using orderby with 2 meta keys
- Is there any difference between below WP_Query code snippets?
- Get closest event where meta_key field is an array
- WP_Query with meta_value_num and meta_query not paged correctly