use pagename=
to query by slug. See WP_Query for full list of valid arguments.
Related Posts:
- Get attachment by slug
- How can I filter by slug depending on language selection
- WP_Query tax query part of slug
- how to get category`s slug in WP_Query loop?
- How to search by slug and old slug in single API
- Query posts only with featured image
- WP_Query order by multiple meta keys & fields
- How to prevent execution of default query, while preserving ability to use WP_Query in template?
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- How to remove_query_arg() for paginate_links()
- How to force a query conditional?
- WP_Query and polylang issue
- Given a WP_Query, how can I get a list of tags?
- Executing Queries in tag.php
- JSON: schedule creation of json file
- Get list of posts which have at least one term from a custom taxonomy with WP_Query
- WP_Query meta_query by array key
- How to show only one post for each categories of taxonomy of custom post that contains a specific custom field
- Intentionally exceed max_num_pages on main query without getting 404?
- Pass the same object to multiple widgets in a template with one query
- How to detect if a function has been fired on any page so scripts/styles can be loaded conditionally
- Why execute the_post()?
- Count total number of post in foreach loop
- WP_Query not retrieving by random order under parent
- Get images only if parent status is publish
- ACF Relationship + WP Template Parts
- WP_Query Ignoring `post_type` parameter
- Using WP_Query and WP_Meta_Query Outside of WordPress
- How to query a custom post type with a taxonomy filter but display post type archive page?
- How to display 7 most recent days of posts?
- WP_Query Variable inside Array
- Create A Loop With A Variable Number of Posts For Each Bootstrap Row?
- Set Transient does nothing
- Get amount of CPT with a certain custom field value
- query offset countdown by 2 each day?
- How do I make a meta_query OR relation work? [closed]
- Count author posts in certain category
- How to use wp_query to post count by search term > group post count by date > convert to json. (ex. result 12-21-2020 – 343)
- Taxonomy Query Relation field not behaving correctly?
- Filter posts in category archive page by year using a dropdown
- Show post number in widget loop
- Woocommerce – Changing the order of the upsell products [closed]
- Custom Query by Author field and meta
- twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade
- Better wordpress attachment query than this
- How to number the posts (ie #1, #2, #3) in a wp_query?
- How to get all post except particular category without breaking the paging
- How do I rewrite this loop as a new WP_Query style-loop?
- Pagination only won’t work in author template
- How can I check for a thumbnail in WordPress?
- Can’t sort custom post type by random
- WP_Query gives me different results depending on the category order
- Make a SQL query with wpdb in WordPress
- post_type argument not working correctly with WP_Query
- Use WP_Query or query_posts() or get_posts() for optimizing a site?
- WP query is calling get_userdata and throws error [closed]
- 2 column recent post query not respecting float right [closed]
- WP_Query meta value order is not working
- WP_Query->request has a limit
- Add parameter to first post only
- How to get specific string in explode array?
- using nav menu id’s
- Ignore image urls in wp_query search
- Single post – display list of all posts + specific post
- Modify output of custom loop using WP_query
- What’s wrong with this wpdb query?
- The Events Calendar, wp_query returning event date not published date
- meta_query where the meta value is not the post title
- SQL query injection with fifu image
- How do I use multiple similar queries with WP_Query on the same page?
- WP_Query order by multiple meta keys & fields
- WPQuery Date and ACF
- Is WP Query skipping to check next post when an argument is not met?
- 3 posts from each existing category on one page
- meta_query is overriding default search
- Custom Woocommerce Product Query
- How can I write a WP_Query that is this specific?
- How to show specify category template for both parent and child category
- How to query most recent post for each author?
- Custom Query Pagination not working on static front page
- Post Template Query with WP_Query?
- WordPress search page pagination displaying but not functional
- query all posts published by certain user id
- How to create URL parameters to run custom queries?
- Query custom meta value – post view and date meta
- Query Top Set Custom Taxonomy In Given Timeperiod
- Custom taxonomy and query multi conditions
- Orderby Date and Category
- WP_query issue with no posts
- How to get query results for the next page
- Order posts by custom column using pre_get_posts
- wp_query in form method of widget breaks customizer
- Featured image not showing on page
- Add filter to Orderby Parameter using Array
- Iterate through ID’s in loop
- problem in query_vars parameters
- Limit Tags display and ad Drop Down Menu
- Multiple loop for “featured” items returns wrong posts
- Query string form $_GET[‘value’] is not working as meta value in wp_query
- Add banner after the third post [closed]