Exclude Category problem for posts with 2 categories
-
Posts on our blog usually belong in more than one category. For example a post about a new Samsung phone could appear in both “Smartphones” and “CES”.
The theme we’re using allows us to create curated, blog-style pages that display posts based on select categories. When you setup the page, you’re asked to tick the categories you want included (all other un-checked categories are excluded). The problem arises if a post has more than two categories, one that should be included and the other excluded.
In my example, I setup a page that lists posts about CES, only including posts filed under “CES”. My Samsung story that belongs in two categories, “Smartphones” and “CES”, does not appear on this page. I assume this is because the page excludes posts filed under “Smartphones”, completely disregarding the call to include posts with “CES” as a category.
Is there an argument I can add to my theme to address this issue? I have very minimal knowledge of PHP so you’d have to tell me what to write, and where to paste the code.
Our site is https://www.gadgetmatch.com and our theme is Story from Pexeto.
Thanks in advance.
- The topic ‘Exclude Category problem for posts with 2 categories’ is closed to new replies.