• I am trying to run a conditional statement on my taxonomies archive page.

    The page shows my posts for all terms on this archive page.

    I just need a way to check if a post on that archive page belongs to a particular term and if so I am wanting to show an image.

    So to be more clear, I have a custom post type of “boat-listings” and have a taxonomy set of “boat-listing-categories”. In the taxonomy I have 2 categories, New and Used.

    So on my taxonomy archive page I want to check if a post belongs to the Used category and if so then display an image.

    I just dont know if I need to use is_tax or in_category ?

  • The topic ‘if post belongs to taxonomy term’ is closed to new replies.