• It appears when using the shortcode with cat= and multiple cats such as cat=1,2 it returns posts in category 1 OR 2. Is it possible to only return posts that are marked as in both categories, that would be a lot more powerful for large sites.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Indeed, the category filter works as an OR filter: get posts that are related to any of these categories.

    I did code an experimental, more advanced filter not too long ago that allowed using either OR or AND (very similar to WP_Query’s tax_query filter). Unfortunately the hard drive where I had that version of the plugin got corrupted and I lost all that. Might work on it again at some point.

    Thread Starter Brad

    (@saskso)

    Thank you for the reply! Bummer for your hard drive loss. It would be a great addition to the plugin making it a lot more powerful. I like to use the shortcodes on cateogry page descriptions and cornerstone posts/pages and it would be great to be able to show intersections between two categories.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode for Posts Only in Both Categories’ is closed to new replies.