Support » Plugin: Pods - Custom Content Types and Fields » Printing ancestors of tag

  • Resolved hrsms

    (@hrsms)


    Say I have a hierarchical Pods taxonomy

    Fruit
    -Citrus
    –Orange
    Color
    -Orange

    I tag one post with “Orange” whose parent is “Color”
    I tag a second post with “Orange” whose parent is “Citrus”

    If in my post template I display the tag name, it is ambiguous. I can tag each post with all the ancestors, but
    a) I don’t think that’s a proper approach
    b) If I print using [each] it comes out alphabetical: e.g. Citrus–>Fruit–>Orange

    I’ve already read elsewhere that one cannot order the [each] results. I’m not yet to the point of writing my own php (working that direction slowly). Is there a current way to display Fruit–>Citrus–>Orange just with a template? Preferably without tagging the post with all three values?

    Thanks,

    Greg

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter hrsms

    (@hrsms)

    I had made this a built-in taxonomy and was looping in the template using [each].

    I’ve discovered that I can use
    Display Format = Customer Separator (without “and”)
    and
    Display Format Separator = “→”

    and it lists them in the proper order

    Fruit→Citrus→Orange

    I will set this topic to “Resolved”

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @hrsms

    Thanks for letting us know!

    Cheers, Jory

    Thread Starter hrsms

    (@hrsms)

    Rereading my previous reply, I notice that I did not explicitly state that I replaced the use of a built-in taxonomy with a field related to the same taxonomy, though it is implied by the mention of

    Display Format = Customer Separator (without “and”)
    and
    Display Format Separator = “→”

    Just thought I’d clear that up for the sake of any other users that happen upon this thread.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.