Tag Info

New answers tagged

0

The problem you are having here is that standard is not a post format. standard is just assigned to posts that does not have a post format assigned to it. You can also check in your db in wp_terms, there is no post-format-standard term. You can also do the following to print out a list of all registered post formats $terms = ...


0

Post formats are actually terms of the taxonomy post_format. I have done a post about this what taxonomies are and their hierarchies which you can check out here To get a list of all terms under the taxonomy post_format, simply use get_terms and var_dump() the result $terms = get_terms('post_format','hide_empty=0'); ?><pre><?php ...


0

Add a taxonomy argument to specify the post type in your WP_Query. Here's an example straight from codex: $args = array( 'post_type' => 'post', 'tax_query' => array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote' ), ), ), ); ...


0

I believe that you're asking about post format and not post type. Assuming that's correct, you'll probably be using WP_Query to query all posts of the post format "Standard." However, as noted in this trac ticket, there's strangely no way to query for the standard post format. Instead you need to query for all posts NOT IN any other format. Alex King put ...


-1

I'm a noob. I named the Taxonomy wrong... It's post_format not post-format



Top 50 recent answers are included