Map as Homepage question

This topic contains 9 replies, has 3 voices, and was last updated by  Paolo 9 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #48346

    Living World
    Free User
    Post count: 18

    I must be missing something obvious, but I’m trying to set my default home page map on my default GeoDirectory Framework theme, I just want the map to default to show all listings in the US. Help, please! lol

    #48402

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    is the map there, but not showing what you want, or it is not there at all?

    If you share a link to your website and admin credentials in a private reply, I will have a look at your settings.

    Let us know,

    Thanks

    #48477

    Guust
    Moderator
    Post count: 29970

    That will only be possible if you have no listings outside the US though.
    But post your admin details like Paolo asked, and we will a check for you.

    #48636

    Living World
    Free User
    Post count: 18
    This reply has been marked as private.
    #48641

    Guust
    Moderator
    Post count: 29970

    The home page map can only show one custom post type at the time.
    That is currently set to rentals, and you have only one rental listing, so it zooms in to that listing.
    I did change the default to Places [GD > design > map > Default post type search on map] because you have a lot more listings there, but there is a listing in RV dealers that trips up that category.
    I have not been able to find it, but you will see if you choose not to show RV dealers, the map works fine.
    I unticked the category by default now, but if you tick it in the map legend, the map breaks again.

    #48648

    Living World
    Free User
    Post count: 18

    How would an individual listing break that though? I don’t get that.

    #48650

    Guust
    Moderator
    Post count: 29970

    A coding error in one of the fields or a bad address, might do that. I cannot guarantee that is the error though.
    I also just spotted that a lot of places have no category, that also will cause troubles, they just don’t know where they belong.
    I would set all of them to draft, and then start turning them on block by block until you find what is causing the trouble. First set all places without categories to draft or give them a category.

    #48703

    Paolo
    Site Admin
    Post count: 31211

    HI,

    just FYI, this is the easier way to see if there is an illigal character that will break the maps in any of your listing.

    You must have firebug installed or use Chrome developer tools. I use firebug.

    Activate firebug in console mode and refresh the home page. The map queries will appear (see image attached).

    As you can see the query containes all category IDs:

    yoursite.net/wp-admin/admin-ajax.php?action=geodir_ajax_action&geodir_ajax=map_ajax&ajax_action=cat&cat_id=31,14,15,23,22,40,21&search=&gd_posttype=gd_place

    We need only category 40 that Guust said it had problems:

    yoursite.net/wp-admin/admin-ajax.php?action=geodir_ajax_action&geodir_ajax=map_ajax&ajax_action=cat&cat_id=40&search=&gd_posttype=gd_place

    You can find this URL with the right category ID, buy simply unticking all other categories from the map. In firebug console each category unticked will trigger a new query, so you want to use the last one.

    Now we can paste that URL in jsonlint.com, that will tell you if and where there is a problem.

    Most of the time is a “tab” space copied from word or excel at the end of the title.

    Let us know if this helps.

    Thanks

    #48878

    Living World
    Free User
    Post count: 18

    Yeah, I finally found it, it was a bad listing, went thru all 300 one by one. There was a funny entry in the custom fields, and it just wouldn’t delete, so I just deleted the listing. And changed it up slightly, so weird. But thanks for all the help.

    #48887

    Paolo
    Site Admin
    Post count: 31211

    Glad you were able to solve it and thanks for letting us know! 🙂

Viewing 10 posts - 1 through 10 (of 10 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