Give this one a try:
$args_jewellery = array(
'post_type' => 'jewellery',
'numberposts' => -1,
'meta_query' => array(
array(
'key' => 'select_brands',
'value' => '"' . $brand . '"',
'compare' => 'LIKE'
)
)
);
And here’s a link to the WP Query custom field parameters documentation page.
Related Posts:
- get_field not displaying my custom field value
- Advanced Custom Fields: Using category as a rule, before publishing new post?
- advanced custom field Show field in special categry page [closed]
- Sorting posts by season
- How to loop only categories without posts (+ show category featured image with acf) [closed]
- ACF: Display category name using taxonomy field
- Assign category from custom field on post creation and update
- ACF add custom fields to categories and display
- How to query categories with Advanced Custom Fields?
- How to display a value inside a post with a specified category from a category custom field? [closed]
- ACF no print data [closed]
- How can i add service category here? [duplicate]
- How to set acf color field as background color to product category
- How can I add different custom fields for each category in the same post?
- How to create a category loop on my blog (ACF Plugin)
- In ACF, how to show custom category selection tab upon selecting a main category
- ACF plugin categories bug in WordPress 3.9
- My Query is getting the wrong data
- How to use acf field value to order category?
- How to link ACF relationship field to the new Query block in Full Site Editing
- Is There a Difference Between Taxonomies and Categories?
- WooCommerce: List All Categories
- Get rid of WordPress category, tag and author archives?
- Filtering categories in the permalink structure
- Wrap Post count in a span
- wp_nav_menu not appearing for a couple pages
- Why aren’t sub-categories nested after creating post in the WP Admin?
- Preventing index.php?category_name=something from redirecting
- How to get category id of current post?
- Trash bin for categories
- Categories’ hierarchy in URL
- Display one category in one page
- How to get next previous category in same taxonomy?
- is_archive() content being shown instead of is_category()
- Check is category parent or not from its ID
- Which php file lists all the post of a category
- How to query posts from specific authors and categories using WP_query?
- Apply custom category template to subcategories
- Retrieve all posts within tag OR category?
- Include template before a loop
- How to customize tag and category post listings to show introductory content?
- List Terms in Category
- Can you have a single set of “canonical” categories shared by all blogs?
- Include posts from feature category in pre_get_posts
- How to customize category template?
- Customized landingpages for categories
- get_the_category_list open in parent window
- Class active for Archive link – looped out
- Get parrent category name
- Remove sub-menu item from admin menu
- Counter in loop in foreach
- How to add WordPress sub category without select
- Add child category to parent on post creation and save
- wp_list_categories in in nav_menu
- How to use an array of categories as a dropdown?
- Custom taxonomy template for categories
- How to create a custom categories page
- Select posts from Category
- Get post related on category
- Give Children Unique ID’s
- Searching for a category returns nothing if category is empty
- Custom Permalink with child categories creating 404
- Cannot filter categories by parent category
- Redirect year month day postname permalink structure to category postname structure
- Show all sub categories?
- Category nicename inside loop in wordpress
- Exclude all subcategories in the_category (post)
- Displaying another main nav menu for specific category
- Exclude categories from list (wp_list_categories)
- How to display the 5 latest post titles but allow only 1 in there of a specific category
- WordPress: Using the category slug get the category ID using mysql query
- How to add categories using mysql
- Posts made to category don’t show up (do show up on frontpage)
- How to fix select filter on category
- wp_dropdown_categories() works correctly but the list is not filtered in admin for custom post type. What is the problem?
- Migrate the posts of a category to another blog as a custom taxonomy
- Woocommerce only display child category when parent is checked (on add new product page)
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Add $args to wp_list_categories
- How to hide a category or tag everywhere EXCEPT for use with get_posts
- In if…else condition, the else statement shows even if if statement is correct
- How to show entries related to main category
- Restrict retrieved terms by category?
- Get category from slug list
- Re-coding category-template.php to go to custom URL
- Category removal – Portfolio Category:
- How to Change Sort Order of default WordPress Catgory Widgets?
- Show One Level Category id
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Custom filters inside a specific category?
- $args Orderby The number
- Function to list posts from current post’s category fails in WP 3.8
- Multiple parent categories
- Formating content in category.php
- How to use Greek characters/letters in a query?
- Getting categories to change appropriately when using $cat = ‘ ‘;
- how to call the category of the post
- why is the delete option missing from just one category?
- Get all categories
- Show category post order ASC