Support » Developing with WordPress » How to create link that filters posts with 2 specific categories.

  • How to create link that filters posts with 2 specific categories.

    Hello,
    When I click on the link of some category, a result is displayed with all posts that have this category. Perfect.

    However I would like to display all posts that have 2 categories.

    Something like: (View All Posts Containing CAT “A” AND CAT “B”)

    I’ve tried everything, and I can’t, my last attempt was:
    “? s = & category_name = CAT1 & category_name = CAT2”

    But it didn’t work, it displays posts that have CAT1 or CAT2 or both.

    But do not display Only posts that have both categories as desired.

    Can someone help me.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to create link that filters posts with 2 specific categories.’ is closed to new replies.