+ Reply to Thread
Results 1 to 3 of 3

Thread: { location } location tag

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    105

    { location } location tag

    Hi,

    I use the
    Code:
    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?

    Cheers

  2. #2
    Senior Member
    Join Date
    Aug 2014
    Posts
    105
    Hi, can anyone suggest a solution or coding to achieve the above?
    Cheers

  3. #3
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello,

    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