Skip to main content
Changed "links" in terms array to "post-format-link" since then the filter will work. Since it's post-format the target is.
Source Link

You should be able to exclude posts with a specific format using WP_Query's tax_query parameter.

Eg.

$q_args = array( 
    'posts_per_page' => 1, 
    'tax_query' => array(
        array(
            'taxonomy' => 'post_format',
            'field' => 'slug',
            'terms' => array( 'links''post-format-link' ),
            'operator' => 'NOT IN'
        )
    )
);
$featured->query( $q_args );

Untested, but should do the trick..

You should be able to exclude posts with a specific format using WP_Query's tax_query parameter.

Eg.

$q_args = array( 
    'posts_per_page' => 1, 
    'tax_query' => array(
        array(
            'taxonomy' => 'post_format',
            'field' => 'slug',
            'terms' => array( 'links' ),
            'operator' => 'NOT IN'
        )
    )
);
$featured->query( $q_args );

Untested, but should do the trick..

You should be able to exclude posts with a specific format using WP_Query's tax_query parameter.

Eg.

$q_args = array( 
    'posts_per_page' => 1, 
    'tax_query' => array(
        array(
            'taxonomy' => 'post_format',
            'field' => 'slug',
            'terms' => array( 'post-format-link' ),
            'operator' => 'NOT IN'
        )
    )
);
$featured->query( $q_args );

Untested, but should do the trick..

Source Link
t31os
  • 18.7k
  • 3
  • 56
  • 68

You should be able to exclude posts with a specific format using WP_Query's tax_query parameter.

Eg.

$q_args = array( 
    'posts_per_page' => 1, 
    'tax_query' => array(
        array(
            'taxonomy' => 'post_format',
            'field' => 'slug',
            'terms' => array( 'links' ),
            'operator' => 'NOT IN'
        )
    )
);
$featured->query( $q_args );

Untested, but should do the trick..