You should not be using query_posts
at all.
It should be noted that using this to replace the main query on a page
can increase page loading times, in worst case scenarios more than
doubling the amount of work needed or more. While easy to use, the
function is also prone to confusion and problems later on. See the
note further below on caveats for details.http://codex.wordpress.org/Function_Reference/query_posts (emphasis mine)
Second, the showposts
argument has long been deprecated.
Third, the tag
argument is not listed as deprecated, the source appears to still respect the argument, and it works when I try it. Make sure that you are using the tag slug and the name. The two may not be the same.
Related Posts:
- How to exclude latest x posts from a paginated query?
- Query posts distinct authors
- How to get previous 10 days post from a specific date – WP Query
- Hiding posts in a list from specified categories
- How would I get 1 latest post from a query for 5 posts?
- Filter Posts By Tag
- WP Query related posts by current page Tag ID
- Exclude posts with empty post_content in wp_query
- Improving WP_Query for performance when random posts are ordered
- WP Query – duplicated posts once including tags in search results
- Reset Popular post query?
- Display post from current category and same tag?
- Why WP_Query(‘showposts=5’) shows only 1 post?
- is there a way to show the the post title after the image?
- Display posts with tag that matches current post title
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- Random ajax load only works with posts_per_page set to -1
- posts_per_page option limits the number of Gallery items
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- How to get Tags with specific post id
- Nested WP_Query breaking loop
- Conditionals if tags exist?
- why the same code got different results when using query_posts in functions.php and index.php
- Query for first 3 posts to change the look and feel
- How to get posts published on the latest date?
- How to check in functions.php if there is data in a WP_Query?
- Shortcode with ‘year’ parameter
- On what hook can I get the queried object’s final state?
- wp_query with ajax
- How to give classname to post if post has no content?
- WP_Query: Show 10 posts in date order, first three random
- Random posts that always include a particular post?
- WordPress post filter menu
- Query function not executed between element [closed]
- Echo the number of posts being displayed
- WordPress query portfolio posts
- Display 3 posts with different HTML markup using a loop
- Change content off every sixth element
- Show posts from two specific category in WP_Query
- How to create loop of posts except post ID defined via ACF field
- Displaying all posts from other sites on the network on one site
- Multisite how to display merged posts from two sites and sort by latest date?
- Exclude posts in home slider from sections
- Show 5 posts and than 3 posts offset with pagination
- wp_query args with relation
- Manipulate query to show specific post
- Show all posts from the tags without having to set all of them
- Sort / Filter Queries
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- How do I control the fallback query after the original query returned cero posts?
- Remove duplicated posts in the loop if post has more than one category
- Adding a category at even positions on main loop with modified pagination
- wp_query select if have comments
- query_posts different amount of posts per page [duplicate]
- Get related posts matching most of the provided tags using WP_Query
- how can i change WP main archives loop to sort by name or title
- Using wp_list_pages() after calling query_posts()
- how to get post order by post id wp_query?
- Display Posts on Custom Page
- Possible to alternate between two loops
- How to get posts from a current post’s month?
- How to get a post’s content? [closed]
- How Do I Get My Post Tags to Alphabetize?
- Wrong post title displayed from loop
- While loop articles – if statement order
- do more action after I publish a post
- Retrieve only posts from a specific user in wp-admin/edit.php
- How to display all posts divided/ordered by post date? [closed]
- Why Query is returning empty array?
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- Show post content and title in diferent divs using WP_Query using a loop
- WordPress website loads more posts than expected
- Why are my paginated posts always returning the same results?
- Ignore latest two posts
- Is it possible to use WP_Query to only pull posts with attachments?
- Get the amount of posts on a current page
- Displaying posts that belong to a specific author
- Posts – display all posts except a post by an ID
- Show posts by author of membership level (Paid Membership Pro)
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- Counter is skipping post when I still want it visible [closed]
- Every second post different class in blog view
- Display related post by tag name of current post
- Loop doesn’t exclude the specified category in home page
- Get posts with multiple categories
- Do not show children of a category
- query post limits
- Display posts of specific category term
- How to remove specific tag from multiple posts?
- Print out last 3 blogposts
- Query posts by Author and/or by Tag
- Display Posts with template on a Page
- Archive template combined with post slider and regular posts
- Why posts array is empty?
- Can’t understand why sometimes a [caption] field appears
- How to only publish posts with image in it