Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answerthis Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video', 'post-format-aside'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video', 'post-format-aside'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video', 'post-format-aside'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

added missing post format
Source Link
mrwweb
  • 10.3k
  • 5
  • 40
  • 75

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video', 'post-format-aside'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video', 'post-format-aside'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.

Source Link
mrwweb
  • 10.3k
  • 5
  • 40
  • 75

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 together a fairly involved snippet that does this.

A simpler snippet is found in this Stackoverflow answer to a similar question:

array(
    'taxonomy' => 'post_format',
    'field' => 'slug',
    'terms' => array('post-format-quote','post-format-audio','post-format-gallery','post-format-image','post-format-link','post-format-video'),
    'operator' => 'NOT IN'
)

The above would be the value of the tax_query argument in an instance of WP_Query.