I tried this query and it seemed to work quite nicely. Hopefully it helps you as well!
$args = array(
'post_type' => 'cbd_team_members',
'posts_per_page' => -1,
'paged' => $paged,
'orderby' => 'title',
'order' => 'ASC',
'meta_value' => $search,
'meta_compare' => "like"
);
$loop = new WP_Query( $args );
Related Posts:
- Search multiple custom fields by using meta_query
- Including Custom Meta with posts_where query
- search also in taxonomy, tags and custom fields
- Including metaboxes from custom post types in global search — continued
- Extending the search context in the admin list post screen
- AJAX search on post pages by custom post type
- How can I change the admin search posts fields?
- How to make a WP_Query search with custom post types?
- Development of a WordPress Search Plugin – Best Practices
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- WP_Query orderby custom field then post_date in one query
- Filtering a WP_Query meta_query by numeric values isn’t working
- Sorting a query by custom field date
- How can I generate a RSS feed based on a custom WP_Query?
- Display Custom Post Type Fields
- Get posts with tag all post types
- Search everything (posts, pages, tags, cpt, meta)
- WordPress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
- How Do I Use WP_Query to Run This Database Query as Search Result?
- Using new WP_Query in shortcode in a custom field causes the main post content to not display
- WordPress query by multiple Custom fields and order by date
- Display two post types ordered by two custom fields
- Get post info inside modal window?
- How to search from specific post type with tags?
- Query for custom posts with a specific tag slug
- Having trouble with custom date field for CPT query (WordPress)
- Display posts if a custom field value is equal to another custom field value
- Sort by two dates. Default entry date and custom field if present
- Search Custom Post Type Custom Fields
- Custom Fields vs Separate Table
- Conditional to modify query results
- Filtering by Post Meta Custom Fields – Performance
- WP Query—Relationship between two custom post types and their fields
- How to dynamically attach pictures to a carousel
- Get all Posts If has same custom field values in Posts
- Custom Post type and Custom Field WP_Query
- Why does querying on post_tags (which has been applied to custom post types) only return posts?
- Can’t query tag and post_type at the same time
- WP_Query orderby modified to include custom meta changes
- Returning a list of custom post types excluding those without a specific meta_value
- Two near-identical custom field types – one works, the other doesn’t . What can cause this?
- wp_query check if integer exists in custom field’s array
- How to stick custom post at the top in search results
- WP_Query order by custom field, then randomly order some of results
- Get Posts by multiple custom fields is not working
- First custom field value (out of several) displayed twice after query
- How to get all tags of a custom post type by id
- Displaying and searching Custom Posts
- Advanced search form with filters for custom taxonomies
- filter search custom field query
- How to let users choose where to search for posts?
- Query based on custom fields start and end date
- DIsplaying URL of custom field in last post of certain taxonomy && post type
- Display post from a date range from custom field
- post_per_page ignored in WP_Query
- Getting a custom post’s custom field based on another custom post’s custom field select
- Select2 AJAX and WP Query Returns ALL and does not filter
- Custom Taxonomy Search result page
- WP_Query orderby not work with meta_key
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- search custom post type by custom fields on front end
- Display custom post type for specific user
- Custom Post type loop with ACF not displaying properly
- Best way to create a search for custom post type by custom field values
- Searching post types
- WP query_posts group by meta field related
- Custom Form / Search with Custom Post Type Data
- Create if else for post types in WP_Query ‘post__in’ values
- WP Query from two Custom Post type fields as statement
- WP Admin Dropdown List Filter for custom (ACF) field on custom post type(s)
- how to display posts content on the custom css popup by clicking on each title on the sidebar?
- Search Function not searching correct custom_post_type even though post_type is defined in search args
- How can I fetch all the dates from custom fields from various different custom post types and show / list them at one place in ascending order?
- Query custom post type and custom field by URL parameters
- Sort custom post archives by a meta value from a different custom post type?
- post_type incorrect for custom post type
- Live search by custom tag
- Manually build WP_Query
- WP_Query with custom post type search showing all results every time
- Use Tags to Query Associated Multiple Posts and Get The Average Of Custom Field Values
- Search form to find custom meta box generated data
- Calling specific page with wp query
- Selecting posts older than the current Unix epoch timestamp
- Custom post type blog pagination conflict
- WP_Query get posts where post_name is empty
- Advanced search form with filters for custom taxonomies and custom fields
- Query recent posts by author
- 404 on Pages for Custom Post Type & Query_Posts
- Querying meta values within an array
- Query Custom Post Type by Tag
- Customising wordpress search and using $_GET[“s”]
- Custom Post Type + Custom Meta Query Not Showing 2012 Posts
- Filter Custom post type by another Custom post type
- Show Posts in Vertical Tabs with Scrollbar
- Attaching multiple custom taxonomies to one CPT?
- Searching Custom Posts content with JQuery
- Display ACF object field data using Elementor Custom Query
- WordPress custom field sorting, weird behavior: the latest post is at the end
- Sort CPT by taxonomy AND THEN by custom field
- Query order by a numeric ACF field