This code is incorrect! You have
'taxonomy' => 'post-format'
But it really needs to be:
'taxonomy' => 'post_format'
Without the underscore, the query will be invalid. I just tested this on my WordPress 3.1 install after pulling my hair out for hours.
Hope that helps!!
Related Posts:
- Display/query post formats
- Help altering a query to exclude all but standard post format
- query_posts sort in multiple directions
- Adding Variables to post query
- Static Front-Page Excerpts
- Placing post data (title, date, and excerpt) nested in static content
- How to get Related Custom Posts?
- When to use WordPress loop or Foreach loop?
- Make tag archive display post are ordered by post format
- How do I query based on the modified date?
- Query add html after set amount of posts?
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- How to Get All Posts with any post status?
- what is the correct way to compare dates in a WP query_posts meta_query
- query_post by title?
- Order by meta value or date?
- Display posts of the last 7 days
- Is there a way to exclude the content from the post variable to save on RAM usage?
- Filtering posts by post meta data
- How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?
- How to query post by user role?
- Help to condense/optimize some working code
- query_posts exclude a meta key
- query_posts() in function makes global $wp_query out of sync?
- How to make “sticky” pages (and query by them)
- Sort posts alphabetically by custom field value, insert divider between different letters
- using post__in allow duplicate post id
- WordPress Custom Query
- Post format selector in Thematic child theme post class
- Add field to posts (checkbox) that only one post can have
- Use union/intersection query_posts variables in uri request parameter form?
- query_posts doesn’t order by title
- How to limit search to first letter of title?
- Query posts by custom post type and custom taxonomy
- Custom query with query_posts doesn’t show post without certain meta_key
- Post Title displaying but not in the wrapped HTML I need
- How to ensure that is_search() return false after query_posts
- Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields
- Post count per (day/month/year) since blog began
- Dynamically excluding current page id
- How do i paginate query_posts with numeric pagination?
- Query 1 taxonomy term, exclude another
- Ordering terms before displaying posts
- Unable To Get Published posts using query_posts
- Read More is not working in query posts
- Setting posts per page in query_posts
- Tricky WP Query
- tax_query operator woes
- query_posts() ALWAYS displays something?
- Trouble with get_next_post() get_previous_post() returning null
- How can i display the posts per week in a particular month?
- How to run a SQL Query for character in Post Titles
- Authors List page : how to exclude posts from certain category
- Using ajax with paging and a custom sub-query
- ACF Query meta_values don’t work with ‘offset’
- How to retrieve an array of post IDs by a particular value stored in a custom meta’s array
- Query a WordPress page by its title (which has a parent page)
- define orderby URL with meta_key=post_views_count
- Query_posts and attachments
- Custom loops, sticky posts, and pagination nightmare
- Querying posts only if the current page is not paged?
- post_parent array doesn’t work
- how to store wordpress loop in array?
- meta_query check for meta value in key which holds an array of values
- Exclude posts by post meta value
- How to place an image after Nth number of posts in query_posts
- Related Posts: Notice: Undefined offset: 0
- Single-page wordpress theme navigation
- meta tag placement for google verification
- attach CPT data to a taxonomy
- How can I show only 5 posts from the relationship?
- Frontend form with multiple posts
- Way to cache a query for 24 hrs
- How can I list posts with different formats depending on order?
- query_posts orderby postmeta [closed]
- WordPress Query based on random taxonomy
- View Achive with Category Filter, but Page per post not working
- Meta query stopped working
- Sticky posts don’t show up first in custom loop
- Want Page Descendants when using query_posts post_parent or child_of
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- Querying a query
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- query_posts meta_key with current date
- How to put orderby on a custom field in query_posts
- wp_remote_post and form post
- Filter posts by current date ( WP Post Carousel )
- Change post template the proper way
- Sort Posts By Custom Field Date
- Custom query posts error
- query_posts not working after wordpress 3.7 update
- Post Filter clearing on pagination $_post
- Is that the query_posts() the real criminal here?
- Custom MySQL query to list post
- Query specific posts from parent by slug rather ID
- How to limit the number of posts on the home page?
- query_posts and sub pages?
- How to refine WP-Query with further criteria
- prevent display duplicate titles on main page
- Lots of SQL queries