Map as Homepage question
This topic contains 9 replies, has 3 voices, and was last updated by Paolo 10 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
August 5, 2015 at 10:38 pm #48346
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
August 6, 2015 at 3:02 pm #48402Hi,
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
August 7, 2015 at 6:23 am #48477That 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.August 8, 2015 at 3:40 am #48636This reply has been marked as private.August 8, 2015 at 4:58 am #48641The 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.August 8, 2015 at 6:35 am #48648How would an individual listing break that though? I don’t get that.
August 8, 2015 at 7:07 am #48650A 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.August 8, 2015 at 5:23 pm #48703HI,
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
August 10, 2015 at 6:26 pm #48878Yeah, 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.
August 10, 2015 at 6:54 pm #48887Glad you were able to solve it and thanks for letting us know! 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket