Your meta_query
needs to be a nested array, like so;
$args = array(
'posts_per_page' => '5',
'cat' => '3',
'orderby' => 'rand',
'meta_query' => array(
array(
'key' => 'Featured List',
'value' => 'Yes'
)
)
);
And I get the feeling you don’t actually need a LIKE
match – this’ll perform a loose comparison, and isn’t as efficient as an exact match.
Related Posts:
- Custom query with orderby meta_value of custom field
- Query Posts or Get Posts by custom fields, possible?
- query_posts and only show results if a custom field is not empty
- Filter archive.php by custom meta
- Order posts by custom field and if custom field is empty return remaining posts
- Query on custom field count?
- How to use query_posts() with a date filter on a custom field?
- meta_value_num sort glitch
- Can ordering post list by meta_value cause performance issue?
- Order by value in serialized custom field
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How do I query for a post by custom field?
- meta query not showing any results?
- using multiple meta_key and meta_value in query_posts
- Query post order by post and desc not working
- How can I sort homepage by a meta value?
- Order query by meta_value with multiple custom fields
- Show 1 post and after a specific date show the next one
- How to select posts from multiple categories and metavalues?
- meta_compare seems to be treating values as strings instead of integers as expected
- Change order of posts
- filter custom field values $min $max
- query posts custom field calculation value
- WP Query – Is this correct?
- Query_posts with custom field meta value
- Unable to get specific value from post meta
- Meta_query ‘compare’ => ‘LIKE’ not working?
- query_posts with meta_value
- Custom search SQL Query to add custom field in result
- How to put forward a blog post
- How can I change the publish date based on a custom field?
- Get author total post votes from post meta
- Problem with writting correctly a query posts args in WordPress
- simple fields plugin custom query
- query_posts -> get page_id from custom field
- Checking if field is set before comparing with meta_query in query_posts?
- Filtering posts by WORD in custom field
- Display agents (custom post type) alphabetically, except one who always shows last
- Filter Query Post by Custom Fields(by date)
- Where are custom field values stored in the database
- Using TinyMce with textareas in meta boxes on custom post types
- ACF – get_field() using ‘option’ as post_id not working
- How to set a default meta value for custom field
- Populating meta box with select-list of existing posts, and assigning it to custom post types
- Create meta boxes that don’t show in custom fields
- wp_editor in add_meta_boxes does not show gallery
- Deleting a custom field field
- custom field to always to .get_the_title()?
- Displaying posts with only upcoming dates according their custom field date value
- How to filter a dd/mm/yyyy date from a custom field in a query
- How do I add custom_meta_box_id’s value?
- Get a post_id where meta_value equals something in a serialized meta_value field
- List posts with common custom field value
- Is it bad to use a lot of Custom Meta Fields?
- Custom Meta Box not Saving in Posts with Gutenberg Editor
- How can I pass a variable set by ACF to header.php?
- Update Custom post field by Ajax on cached site
- Meta_query is not working on Elementor Custom Query Filter [closed]
- How to create html block to display extra information on woocommerce single product page
- Run a check for multiple meta key values
- Getting the ID of any image for use in functions.php
- How to schedule a custom field value update?
- Advanced search for meta fields
- Woocommerce Product Custom Select List (not variation)
- Populate Javascript code with value from WordPress Custom Field?
- Limit of char count in WP custom fields
- how to make nsfw post with thumbanil
- Specific coditional usage [closed]
- How to I make my post title link to a custom field
- How can I check if a custom field was updated?
- Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
- Update post meta data (custom field) by post link
- Changing order in which custom fields appear in dashboard
- Retrieving custom field value with get_post?
- Custom Meta Box Upload Image Problem
- Custom Query: query by post custom meta data
- Using Custom Fields to Trigger Specific Actions on Saving a Post?
- update_post_meta
- update_post_meta not working well
- User query – getting values for custom meta keys/fields
- trying to add extra field using hooks
- Custom fields with wordpress
- Link fields in User Admin list
- what would be a good example of a php dynamic code to display contents of textarea?
- Get file size from ACF repeater field
- Append custom field items to content from plugin
- Query postmeta values, and return multiple post_titles for common meta value
- Set Value To Custom Field While Submit
- Custom Field: Display only if a specific key is selected outside the loop
- Show or hide lang=”ur” in main element
- How to use a custom field for search engine optimization
- Fetch data from a WP page with same name as current username
- How to get the value of particular get $meta value in wordpress
- custom field as a boolean with a checkbox?
- Hiding custom fields when content is empty [closed]
- Website that sells statistics
- Extract array from custom field
- Add fields to edit in custom widget
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?