• Resolved netschmiede24

    (@netschmiede24)


    Hi,

    I have a pod with trips for an travel agency with an added taxonomy “countries”. The taxonomy is built of parents (continents) and then all the respective countries as children of the continents. Each trip is labelled by the contintent and all the countries that the trip is going to.

    When I call that taxonomy in a template, I can call

    {@countries}

    which will give a list of all contintents AND countries, like: “Europe, France and Germany”.

    I can call

    {@countries.parent.name}

    which will give just “Europe”.

    How can I get an output of just “France and Germany” (or better, “France Germany” without the “and”), so I can get add a globe icon before the continent and flag icons before the countries ?

    Thanks,
    Astrid

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