Based on the codex, the meta_query
parameter contains one or more array with the relation
parameter not set if single inner meta_query
array.
Also remove the page
parameter as it serves only for a Static Front Page.
Your args array should look like that:
$archive_args = array(
'post_type' => 'speight_home_plans',
'orderby'=> 'title',
'order' => 'ASC',
'posts_per_page' => 12,
'paged' => $paged,
'meta_query' => array(
array(
'key' => 'display_where',
'value' => 'speight',
'compare' => 'LIKE'
),
),
);
Related Posts:
- Add inline HTML to posts published within last 24hrs
- Get post count of current loop when using multiple queries on one page
- Show posts without term
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Display products from specific category in shop page
- get_template_part in for loop
- “pre_get_posts” firing on every query
- Show two random posts from custom post type
- Add the “active” class only to the first loop item in a WordPress query [closed]
- Sort posts by custom taxonomy name
- Loop inside the loop
- Exclude post on loop by multiple meta key value
- cloning a WP_Query
- How to query ‘posts_per_page’ to display a different blog posts index template?
- Sort by meta key on archive page
- How is WP_Query connected to WP_Post in The Loop?
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Order posts by meta value and Date
- Query sticky posts with thumbnails
- Show all parents and children in custom post type in right order
- Why is this coming back as null? Thats wrong. There is one post
- Ignore post by meta value in the main query
- How to retrieve current page WP_Query arguments?
- Get posts for last working week in WP_Query
- How to limit WP_Query to one result on the loop?
- if/else on custom query gives 200 OK when condition not met?
- query user display_name failed in a custom mysql query foreach
- Query posts by specific word on title
- Random loop with code to prevent duplicate output returns no output at all from time to time
- Multiple taxonomy And acf filter group by
- How to use offset in WP_Query
- Reset postdata to custom query in nested queries
- How to Filter Posts by Custom Fields?
- Multiple loops without repeating content
- Filtering posts from different categories into different section by doing WP_Query only once
- Loop Split two Columns
- How to list posts with disabled/closed comments, with pagination?
- How to make a second query offset -2 from current post
- WP_Query with offset and ‘orderby’ => ‘rand’, offset not working
- Custom taxonomy.php not working
- different for loop if screen resolution < 1000px
- Transient api Caches confused
- Best choice for multiple loop in page?
- WP Query – order posts by meta field first and then order the rest
- Wp_query with 2 meta keys and array of meta values
- sort and display posts by custom field (wp-query and the loop))
- How to create custom query by keyword in post title?
- Create a loop on my pages with new “WP_Query”
- WP ForLoop to compare meta information of posts to determine what post to display
- How to filter query loop block with a search string from the query parameters
- inserting content of 1 Post to in another with a template hierarchy
- Different Loop for tag pages?
- Pagination for custom loop on custom page template is not displaying anything
- Filtering by multiple conditions in the loop
- How to access $wp_query object from array of posts given by get_posts?
- Display all attached image of every post of custom post type and link to original post
- 2 queries with counters
- Writing less unnecessary code with WordPress
- Search.php – return number of results but cannot loop through
- Creating ‘posts page’ loop based on the page itself
- WordPress Queries Not Working?
- Filter subpages in while loop from WP Query object
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- Custom query does not find pages
- How to sort by most watched in X days/months
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How can I use arrays and a foreach to generate many lists with WP_Query?
- How to use custom page for all posts with custom url, call another directory?
- Custom wp_query inside a conditional stament inside a template part doesn’t work: why?
- display ACF repater field in archive page
- Duplice post with standard WP loop – fixed by using query_posts() instead
- WP_Query breaking the loop in a nested loop
- Check the stored / cached WP_Query with transients on post change
- New template file does not load category-specific post
- Related posts queries
- Get categories within specific term
- Custom query for custom post type not getting correct post ID
- Query post with content only
- update_post_meta() not updating
- Why is my query not giving results?
- why default wordpress loop not working outside index.php
- how to show more than 1 post into three columns query
- Continue loop after $queryObject
- active link for most recent post on vertical tabs
- custom query – offset to pagination
- Custom loop – Isolating post meta output depending on current query taxonomy terms
- WP_Query for attachments without duplicating post_parent and displaying tagged image
- List ALL posts within last week from current category on category page
- loop through custom post types with meta data
- Using Query In Post Type Archives
- How ‘secure’ are loops?
- Multiple loops on index page with sticky post and pagination
- How to do a loop inside a loop?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- tax_query not working properly with get_posts
- the_excerpt() not working in custom archive
- How can I display sticky posts at first in wp_query?
- Query All Posts: Either Display Most Recent or One with Particular ACF Value Chosen
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?
- after refresh the id that shows correct in first time click, changes to 1