I found the answer here. The query is simply :
$meta_query[] = [
'key' => 'adresse',
'value' => $_GET['field'],
'compare' => 'LIKE'
];
As it will search into the serialized (2D) array of the key adress
in the table post_meta from the DB any occurence of my $_GET['field']
value. That means it will also search into every key name and its value, but that’s enough for me.
Related Posts:
- Filter by custom field in custom post type on admin page
- Media library – Limit images to custom post type
- Query by 2 values of a repeater ACF field
- Adding posts of custom type into the main feed
- Archive filter disappears on no results?
- Modifying date filter on admin page for custom post type to link to custom field
- Custom query to filter posts that have current post as a taxonomy [closed]
- How to add a post slug to a url?
- creat filter with wp_query
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Filter posts by their related field’s custom field
- How to hide sub fields in a field group and also the entire field group if the answer selected is “no”
- Linking posts together with Advanced Custom Fields “both ways”
- How do I display specific custom posts, and how do I edit a post’s singular page?
- Grouping and paging CPT events by month with custom field date
- Filter Content on all Post Types
- $post breaking container loop
- using ACF datepicker to filter posts on a page
- Filter page ID outside the loop and order
- Custom sortable columns ordered by meta-value?
- Query multiple taxonomy in Custom Post Type
- wp_query and comment_parent – select only posts with top level comments
- Comparing timestamps in meta query doesn’t work
- Include both default and Custom Post Type in query modified inside pre_get_posts
- $wpdb returns no results with SELECT query on custom post type, works on default post type
- How can I add a column in the wp_list_table of the admin area?
- How to filter the description of a custom post type
- Automatically adding meta data to posts or multiple query help
- Show ACF field from custom taxonomy and display on the single template
- Filter home_url for custom post type
- Add Content Exclusively to a Custom Post Type Feed
- Show custom field from custom taxanomy term on custom post type
- How to create an array for a CPT post ID to use in an IF/WHILE statement
- Custom Post type with ACF in REST API, how do I get those values?
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- Querying Two Custom Post Types with OR Not Working
- Bulk Update Custom Fields for Custom Post Types
- How to change the post type a theme shows by default?
- filter custom post in rest api with custom function
- Sort and filter custom post type posts by custom taxonomy
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- Search filter triggered & sort by custom post type
- WebP Fallback for Inline Background Image in Style Attribute
- How can I add a filter to a particular post format?
- Recoverable Fatal Error – Object of class WP_Post could not be converted to string
- show all custom posts types in home page
- How can I remove filters from custom post types?
- How can I add a shortcode to query Custom Post Type with ACF in WordPress?
- ACF for custom post type archive pages: which hook to use?
- Custom Query: If One Post Object Field Value Is The Same As Another
- Advanced custom fields Post Object image field not displaying in custom post type single.php
- how to retain the ability to modify the post slug after applying a post_type_link filter?
- Sum and count of custom field values
- Create query for both custom post type and category
- Custom taxonomy query showing more than 4 posts
- SQL query – get ids – Advanced Custom Fields / WPeC
- How to set a ‘page’ as parent of a custom post type?
- conditional filter
- Using ACF values in nested WP queries for CPT with date values in the past
- Create/populate Custom Posts ACF fields from external JSON file
- WordPress URL rewrites using Advanced Custom Field
- Custom Post Type and Structure Question
- Filter in Custom post type to find the parent post
- Display Custom Field or Custom Taxonomy in front page /post/product
- Why do my custom post types stop displaying over time?
- How to access repeater field of a custom field?
- ACF Pro Accessing fields on a Custom Post Type
- Modify Publish Metabox location on CPT
- Some posts not displaying by taxonomy term
- WP_Query for custom taxonomies showing posts from non-specified terms?
- WP_Query with all posts in one custom post type and only posts in another custom post type with a specific category
- Add content to wordpress edit.php page
- pricefilter without WooCommerce
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Display custom tax in “while” loop
- Custom post tag images not displaying with ACF
- Custom post type with Filter and Page Nav
- Converting a checkbox filter for custom fields to a dropdown
- How do I get a nested query to only display content that the main query outputed
- Get post id of permalink for a specific custom post type?
- Diffrent search templates for different post types
- If you’re calling a dynamic css inline style does that div have to be in the loop?
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Post content stays the same but permalink changes ?
- Pagination not working with custom loop
- How to show animal lineage/pedigree in WordPress?
- Custom Post Type Loop breaking php
- Styling first post using Advanced Custom Fields
- custom post-type query just returns two posts
- Order custom post type is beign ignored
- How do I filter a custom post type loop by a field?
- A to Z list for custom post types
- ACF Relationship: Group posts by parent category term, then child [closed]
- ACF Field to set Publish Date – Post Duplication upon Update
- Getting ACF relationship field information
- Trying to set up a range filter for related custom post types
- Why custom search engine only searches in post titles of custom posts?
- Post object GUID adding http:/