• I would like to show the audio icon for posts that belong to the ‘podcast’ category

    How to?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    You can do this in your template for the post with the has_term function. You need to check that each post has the term (podcast) and output additional content.

    Alternatively, you can use get_the_terms with a loop to assign a CSS class="" value that indicates the categories it has assigned. (You could also do this with has_term for just the podcast term, without the loop.) You need to then add CSS styles targeting your podcast class to add the required icon.

    Thread Starter acqua

    (@acqua)

    Ok I need the exact code to use

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Audio icon on thumbnail’ is closed to new replies.