• Hi everyone,
    I’m having a hard time trying to find a way to display related posts in my custom single template. After zillions of tries the code I have now is:
    [Code moderated as per the Forum Rules. Please use the pastebin]

    With this code I get all posts related to the current post by one term of the ‘kind’ taxonomy. But what if I needed to also limit the related posts by another taxonomy term attached to the current post. I mean another taxonomy called ‘collection’ which has two terms.
    To be specific, let’s say the current post belongs to the ‘shoes’ kind and to the ‘summer’ collection. I’d like to displays posts related only to these taxonomies. The code above filters by kind but displays posts of every collection. I’ve struggled to find a way to do it to no avail.
    Can anyone help me?
    Thanks.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Related posts matching two taxonomy terms’ is closed to new replies.