display city name

This topic contains 10 replies, has 3 voices, and was last updated by  Vikas 9 years, 12 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2483

    czar
    Buyer
    Post count: 316

    Hi, two question:

    1) what is php function for display city name in a page?
    eg:

    <?php $cityname ?>

    2) Use this plugin: http://wordpress.org/plugins/widget-logic/
    which is conditional function for display widget in a determined city?

    #2501

    Vikas
    Full Member
    Post count: 1128

    There is no such function. Still for which page u are talking?

    #2505

    czar
    Buyer
    Post count: 316

    Hi Vikas, city name ​​appears in the menu. There will be a function that creates this name…
    thanks

    #2517

    Vikas
    Full Member
    Post count: 1128

    Hi,
    if u have multilocation on then u can use this statement.
    $current_location_link = geodir_get_location_link();
    echo $current_location_link ;
    but this may have country or region too, depends on what the user has selected either from breadcrumb or a search.

    Please advise ?

    #2536

    Paolo
    Site Admin
    Post count: 31206

    @rightmentor, Cesare is using Templatic’s Directory theme. Not our plugin.

    @cesarecantagalli you are asking support for a competitor product…

    I know their support sucks big time, but if you want to enjoy our support, you need to buy our product.

    We are not going to offer you any support for that theme.

    #2538

    czar
    Buyer
    Post count: 316

    @paolo, but I do not want to support that theme, I already have. I need your to Geodirectory. if you reply here: https://wpgeodirectory.com/support/topic/location-urls/#post-2535

    #2572

    czar
    Buyer
    Post count: 316

    @Vikas, i use geodirectory plugin (see live site)

    this statement

    
    
    $current_location_link = geodir_get_location_link();
    echo $current_location_link ;

    generate this:

    http://www.sfogliacitta.it/area/milano/

    I would just city name Milano (if possible)

    thanks

    #2582

    Vikas
    Full Member
    Post count: 1128

    Sorry about that please use this.

    $current_location = geodir_get_current_location();

    Thanks for ur patience.

    #2583

    Vikas
    Full Member
    Post count: 1128

    $current_location = geodir_get_current_location();
    echo $current_location ;

    #2593

    czar
    Buyer
    Post count: 316

    Thanks Vikas

    #2594

    Vikas
    Full Member
    Post count: 1128

    Your welcome!!

Viewing 11 posts - 1 through 11 (of 11 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket