Support » Plugin: Display Posts - Easy lists, grids, navigation, and more » Is there a way to display the tag

  • Resolved julienferla

    (@julienferla)


    as category_display=”true”

    is there a way to display the tag associate to the term ?

    > tag_display=”true”

    >> [display-posts category=”catname” tag_display=”true”]
    ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    [display-posts category_display=”true”] will list the categories associated with that post.

    You can change the “true” part to a taxonomy name to list the terms of a different taxonomy. So to list the tags associated with a post, use [display-posts category_display=”post_tag”]

    You can also use category_label to change what appears before the list. Ex:

    [display-posts category_display=”post_tag” category_label=”Tagged as: “]

    Thread Starter julienferla

    (@julienferla)

    Thanks for your answer,…

    maybe I didn’t explain correctly 😉

    I want to display a list of post from a category
    so I use
    >> [display-posts category=”catname”]

    and I want to display next to each post title the tag attached to it

    EX: post from category “sunshine” and tag from post

    [display-posts category=”shiny”]
    >>
    The Sunshine post title – TagSun tagYeah
    The Moonshine post title – TagSun tagMoon
    The ShinyBag post title – TagSun tagMoon

    hope it’s more clear 😀

    Thank you for your help

    Plugin Author Bill Erickson

    (@billerickson)

    I’m sorry my answer wasn’t clear, but I was addressing your question.

    To list posts in the “shiny” category and include the attached tags, use

    [display-posts category=”shiny” category_display=”post_tag”]

    Thread Starter julienferla

    (@julienferla)

    hello,… thanks for your answer !!

    I tried to add
    category_display=”post_tag”

    but it return only the list from the category but no tags next to it

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a way to display the tag’ is closed to new replies.