change location

This topic contains 26 replies, has 3 voices, and was last updated by  Strong Coffee 9 years, 9 months ago.

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #30853

    Strong Coffee
    Full Member
    Post count: 124

    It didn’t work for me but I will wait for the next core release and test it again. Thanks.

    #30854

    Paolo
    Site Admin
    Post count: 31206

    did you change the shortcode name? [gd_current_location_name]

    I tested it on another test website and worked there too…

    #30856

    Strong Coffee
    Full Member
    Post count: 124

    Yes I did. What is displayed is:

    Fatal error: Call to undefined function geodir_get_current_location() in /hermes/bosnaweb08a/b2679/nf.sirshanksalot/public_html/sbxdev4com/X-Theme/wp-content/themes/x-child-renew/functions.php on line 170

    #30857

    Strong Coffee
    Full Member
    Post count: 124
    This reply has been marked as private.
    #30858

    Strong Coffee
    Full Member
    Post count: 124
    This reply has been marked as private.
    #30924

    Paolo
    Site Admin
    Post count: 31206

    Hi Strong Coffee,

    you don’t have multilocation installed. Without multilocation that function isn’t available.

    In addition, not having any location, that shortcode will never tell you anything even if it worked.

    I’m very confused…

    Let us know.

    Thx

    #30942

    Strong Coffee
    Full Member
    Post count: 124

    Sorry. I had all the other add-ons disabled in order to troubleshoot a different issue (https://wpgeodirectory.com/support/topic/x-theme-compatibility/). The shortcode works now but all it diaplays is the city as text. Maybe I misunderstood but I was hoping to have the select box to choose which city is displayed similar to the one from [geodir_location_tab_switcher autoredirect=”1″]. I just don’t want the user to be able to change the country and region.

    #30943

    Strong Coffee
    Full Member
    Post count: 124
    This reply has been marked as private.
    #31050

    Paolo
    Site Admin
    Post count: 31206

    Looks correct to me?

    #31187

    Strong Coffee
    Full Member
    Post count: 124

    If that’s the case then I think I misunderstood what the function is doing. Here is a photoshop image of what I was hoping to achieve.

    #31190

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the location switcher is doing that already. Removing Country/Region tab would only make it more difficult for your users to move away from that city.

    The shortcode only shows what location is selected without the city tab on top.

    Thx

    #31197

    Strong Coffee
    Full Member
    Post count: 124

    OK. I was looking for a solution where the user could filter the results by city but I guess that is not the case.

Viewing 12 posts - 16 through 27 (of 27 total)

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount