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
- How can I filter records in a custom post type list in the admin based on the ACF field in the post that contains the current user?
- 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
- Querying Term Posts in Loop
- 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
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- How to change the post type a theme shows by default?
- 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
- Displaying custom field according to date
- How to organise this data within WordPress
- How to query 2 custom post types that need to share a slug?
- Sort a custom post with ACF: Date Picker & Display Featured!
- WP_Query() with custom post type and taxonomy — get all terms?
- Listing custom post types on archive page with array
- How to conditionally add Custom Post Type to Front Page
- Postname on unique permalink structure appends “-2” for a custom post type. How can I get this to stop happening?
- Custome fields not displayed
- Query not work for current taxonomy
- Create short URL with auto 301 redirect
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Why is wp api returning old acf values?
- get custom post type value in header.php [closed]
- Custom Post Type setup
- How do I get_the_postID() for a custom post that uses ACF repeater field?
- new WP_query > displays posts only once instead of running through full array
- Pagination on search results page
- Custom post types, disable fields
- Modifying WP_Title For Custom Post Type
- Custom types, taxonomies and query optimization
- Query custom posts from custom taxonomy
- Excerpt length: get first paragraph
- Changing WordPress sort order for returned child pages
- Custom post ID & display information related to this ID
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- Expire post to draft by date-picker custom field
- WP_Query not using custom taxonomy categories on custom post type
- How would i insert a value of custom field from Advaced Custom Field into shortcode generated by Gravity Forms [closed]
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- Post Click Redirect to Custom URL instead of Single Post Page
- Custom post type not pulling CSS
- Button link display in shortcodes using custom field in ACF
- How do I link to a dynamic ACF button from a Custom Post type?
- Custom permalink rewrite rules – how do I fix this?
- Automatically convert standard posts with custom fields to custom post types
- Submit and edit font end custom post type
- How to make a custom search template for custom taxonomy?
- Making my custom column sortable
- Dropdown switching subcategories portfolio
- Get month and day from a Date Picker custom field
- Sorting on Taxonomy in archive page
- Filter custom post type by tags
- Custom Search Template for Custom Post Types
- Query child posts on parents single.php?
- Modifying and Displaying URL’s in a Post Template using parse_url
- WordPress can only query up to 766
- Allow admin to determine the order of queries?
- How to add post type in masonry posts elementory widget
- WooCommerce – Complete Order when an action occurs
- Rewrite a filter as shortcode (or something like that) to use anywhere in CPT
- add_filter > posts_where works partially
- WordPress Loop trouble with ACF [closed]
- How can I show a field ID in Elementor with Request Parameter
- WordPress duplicating posts from single loop
- How to automatically update ACF field value every year?