Exclude 1 category of custom post-type
-
I would like to ask if I am able to exclude one category of a custom post type in the index?
I made a change in the file postsummary.php in post-index/php as below and the plug-in work great.. however, I would like to exclude one category of this custom post type – where/what can I put the code in?
$query = array ( ‘orderby’ => ‘title’
, ‘order’ => ‘ASC’
, ‘posts_per_page’ => -1
, ‘post_type’ => empty($post_type) ? ‘story‘ : $post_typeMy custom post type is “story” so I have changed ‘post’ to ‘story’
Hope you can help
ctltvoz
- The topic ‘Exclude 1 category of custom post-type’ is closed to new replies.