+ Reply to Thread
Results 1 to 3 of 3

Thread: { location } location tag

  1. #1

    { location } location tag


    I use the
    Only registered members can view the code.
    tag in title meta tags, which works great for SEO.
    My site locations are worldwide, so I have Country, State, City in the location tag available.

    At the moment if I'm browsing listings in say Sarasota. My tag will return: United States, Florida, Sarasota.

    If I'm browsing a City, I would like my tag to just show: Florida, Sarasota or Sarasota.
    If I'm browsing a State, I would like the tag to show: United States, Florida or Florida.
    If I'm browsing a Country, then: United States.

    The ideal length for the meta title is 50–60 characters. If the full Country, State, City is used there isn't any space left for the rest of the page title.
    Can anyone suggest a solution?


  2. #2
    Hi, can anyone suggest a solution or coding to achieve the above?

  3. #3
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Planet Earth

    You can use location variables like that:

    {if location} in {if location_level3}{location_level3}, {/if}{if location_level2}{location_level2}, {/if}{location_level1}{/if}

+ Reply to Thread