Exclude Custom Post Type Category

Follow these instructions to exclude custom post type category.

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                $args = array(
					'posts_per_page' => 8,
					'post_type'		=>'videos',
					'orderby'		=>'date',
					'order'			=>'DESC',
					'tax_query'		=> array(array(
						'taxonomy'	=> 'video_category',
						'field'		=> 'slug',
						'terms'		=> 'featured',
						'operator'	=> 'NOT IN'
					'offset'		=>1,
					'paged' 		=> $paged // must add paged parameter or paging will not function


Leave a Reply

Posted in php
katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.