Here we go, try a tax_query instead http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
...
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => array( 'event','show_on_front' ),
'operator' => 'AND',
),
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => array( 'event' ),
'operator' => 'NOT IN'
)
)
Related Posts:
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Show related posts by category but ignore one category
- prevent showing posts of an specific category in admin posts section
- Exclude posts from featuring
- How can I remove posts of a certain category from homepage after a specified time period?
- List posts in a given category
- Get user categories with most posts in it
- Loop doesn’t exclude the specified category in home page
- Display posts of specific category term
- Migrate posts from category and sub-category via SQL
- WP_Query of Category Not Showing First Post
- Sidebar limiting to 10 posts?
- Query prints posts without specific categories
- show image gallery in archives or category page
- Page with Category Returning 1
- Get 5 most recent categories
- How can I display a specific number of post in a category via a url
- Order posts by separate menu order for different sub-categories
- Retrieve latest post by multiple categories with ID
- Make assigning post to a specific category equivalent to assigning it to all categories
- How to Include a common category in a custom Category Search
- Exclude sub sub categories from displaying in the archive page
- List posts related to category on a div [closed]
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Filters do not work when there are multiple (one works)
- How to return another post than requested
- How can i limit the number of posts created per category?
- Pausing and Resuming WP_Query results
- How to do set post permalinks using 6 digit random unique function?
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Select only post id and meta value with WP_Query
- Pulling in post category and children within category
- WordPress custom Query for Posts in Category display posts multiple times
- Lost draft under all posts and drafts
- Post categories to pages
- Post page to display specific category
- Get Posts Under Custom Taxonomy
- Get attachments for posts that belongs to a specific category
- Prevent additional top level categories but allow more children
- Need help with category listing!
- Random ajax load only works with posts_per_page set to -1
- Prepending %category% onto default posts fails
- List all categories with featured image from post?
- How to : pagination in 3 different custom loops on the same page
- Categories list into registration form
- WP_Query: Mixing category__in and tag__in together
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- If in_category not working for multiple single.php pages
- How can I setup a relationship using categories in WordPress?
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Exclude the first ‘n’ number of posts of a tag from home page?
- how to show single post in a custom template
- Query posts and return XML
- Using ajax on editing a category edit page?
- how to change the number of posts returned in a specific loop without making it global?
- Related posts by category not working right
- How to list recent posts in a wp nav menu?
- Set Default Category to Username
- Query Posts With Over 1000 Views
- Disable sticky option for specific categories
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How can I hide tags on a child-category page, if that tag has not been used?
- date issue with category post retrival
- posts_per_page option limits the number of Gallery items
- List authors with the last post title and order by last post date
- How to order posts by meta_value and title
- Listing Specific Categories from Current Post with Depth
- How to make multiple sections in home pulling posts category wise?
- How to display two blog categories as separate sections on one page?
- wp_query random post
- wp_posts table: safely remove unused columns to save database storage
- Query Posts by Custom Field
- How to make the first post in the loop be styled like a “new / featured” post?
- Adding a blog archive with pagination using WP_Query
- How to Mysql select a list of posts with meta_values AND all relevant categories?
- How to get Tags with specific post id
- Redirect to another page using contact form 7? [closed]
- Display post category in foreach loop
- Single.php – Get Current Parent Category
- WP the_posts() on single-cars.php get category link
- how can i change WP main archives loop to sort by name or title
- How do I stop the loop from repeating in my category template?
- get_the_category listing in hierarchial order
- Using wp_list_pages() after calling query_posts()
- how to get post order by post id wp_query?
- Is it possible to add/tick a category to a post when it is created?
- Excluding posts not working
- Possible to alternate between two loops
- Hide posts belongs to few categories in homepage
- Nested WP_Query breaking loop
- WordPress query_posts by tag doesn’t work anymore(?)
- why does wordpress ignore the post args?
- post category in wp_insert_post
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- How to display all posts divided/ordered by post date? [closed]
- Why Query is returning empty array?
- How to get subcategories from category slug?
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- Remove current category from post but display all others
- How show categories in admin and get that selected to show posts in index