• Resolved supportrk

    (@supportrk)


    Hi:

    I want to include two categories, so I am using taxonomy and the operator is AND. But I want to exclude a category.

    Example: I want – “Articles” AND “Religion” AND NOT-“God”

    Reason: I want to first display all articles (posts) under religion. Then I want to display all articles under God and do not want the God articles showing up under religion and vice versa. Many of the articles are categorized as both Religion and God.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    Display Posts has support for multiple taxonomy queries, which might work for you. Use the first taxonomy query to do the categories you want to pull from, and the second taxonomy query to specify the category not to pull from.

    [display-posts taxonomy=”category” tax_term=”articles, religion” tax_operator=”AND” taxonomy_2=”category” tax_2_term=”god” tax_2_operator=”NOT IN”]

    Thread Starter supportrk

    (@supportrk)

    Thank you. that worked beautifully! Appreciate your plugin very much, it beats Essential Grid and “The Grid” – they just look fancy.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxonomy: Include two categories AND exclude one’ is closed to new replies.