Grow your CSS skills. Land your dream job.

WordPress: Exclude Posts in Post Formats WITH a Certain Category

  • # June 27, 2013 at 1:13 pm

    I can exclude the post_format_videos with no problem but I only want to exclude those video post formats if they are also in the category “How To”. Here is my current code:
    $args = array(
    ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘post_format’,
    ‘field’ => ‘slug’,
    ‘terms’ => ‘post-format-video’,
    ‘operator’ => ‘NOT IN’
    )
    )
    );
    query_posts( $args );

    Thank you

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".