Home › Forums › Add-ons › Flexible Content Field › Search for Pages that have Particular Flexible Content Layouts › Reply To: Search for Pages that have Particular Flexible Content Layouts
In the database in the post_meta table the meta_key (field name) of the flexible content field, the value stored is a serialized array of layout names.
If we were going to do a WP_Query using the meta value the meta_query would look something like this
meta_query = array(
array(
'key' => 'flex_field_name',
'value' => '"flex_layout_name"',
'compare' => 'LIKE'
)
)
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.