Default CPT for maps not showing
This topic contains 9 replies, has 4 voices, and was last updated by bren 5 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 15, 2019 at 1:03 am #474586
I recently converted from V1 to V2 and an issue that popped up in one of the later updates to V1 has persisted after this conversion.
On the main directory map on my front page and the archive page map, the default post type doesn’t show if it’s set to the original gd_places (which I’ve changed to Courses on my site). If I click on another post type and then back to that original one, the map markers will show, although the map doesn’t auto-zoom like it does for the other post types, showing all markers on the map.
I have tried setting the default post type to the other ones available (Clubs and Shops) and it does show them as the default that way. Except that gd_places/Courses still doesn’t auto-zoom like the others when selected.
Secondly, a related issue appeared after the conversion. I cannot get rid of the gd_event CPT. It shows up on the map and I need it removed from there. I have no GD events, event tags, or event categories and I cannot delete that post type. I have deactivated and deleted the GD Events plugin. And still it remains. (I am using a separate Event plugin for that purpose.)
I can provide login info in a private reply.
March 15, 2019 at 1:04 am #474588This reply has been marked as private.March 16, 2019 at 6:41 am #474849Hi Bren,
Thanks for your post. We have already forwarded this topic to a developer and he will look this asap!
Thanks
March 16, 2019 at 8:33 am #474851Hi Bren,
it would really help if you could also share FTP so we can debug further. Please write back with all this info so we can find a solution for you.
WordPress Administrator Account Credentials
WP Admin Login URL:
Username:
Password:SFTP / FTP Credentials
Host URL:
Port:
Username:
Password:March 16, 2019 at 5:02 pm #474918This reply has been marked as private.March 16, 2019 at 10:58 pm #474942I just noticed another problem that might be related. No new Place/Courses are showing up on the map. The 25 or so that are on there are from BEFORE the conversion. I have added about 30 more AFTER the conversion. These show up as listings elsewhere on the site, but are not showing on the map.
New listings for the other post types (Clubs and Shops) do show up on the map just fine.
I have exported the Place/Courses to look at the CSV. I compared the old and new listings to see if there was any field that was missing from the new and that isn’t the case.
March 18, 2019 at 5:22 am #475058This reply has been marked as private.March 18, 2019 at 5:44 am #475061This reply has been marked as private.March 18, 2019 at 7:05 am #475069Hello Bren,
On the main directory map on my front page and the archive page map, the default post type doesn’t show if it’s set to the original gd_places (which I’ve changed to Courses on my site). If I click on another post type and then back to that original one, the map markers will show, although the map doesn’t auto-zoom like it does for the other post types, showing all markers on the map.
I have fixed this. There was a one listing “WARP” which has incorrect value for latitude(it has incorrect character). I have fixed it by re-saving that listing.
—
I cannot get rid of the gd_event CPT. It shows up on the map and I need it removed from there. I have no GD events, event tags, or event categories and I cannot delete that post type. I have deactivated and deleted the GD Events plugin. And still it remains.
In v2 we are enhancing displaying post type & markers. In next release there will be option in map widget/shortcode to hide CPT on map.
Till next release you can hide a CPT from map via hook. Use following snippet to hide event CPT from map.
/** * Remove map post types. */ function gd_snippet_190318( $post_types = array() ) { if ( isset( $post_types['gd_event'] ) ) { unset( $post_types['gd_event'] ); } return $post_types; } add_filter( 'geodir_map_post_types', 'gd_snippet_190318', 10, 1 );
—
I just noticed another problem that might be related. No new Place/Courses are showing up on the map. The 25 or so that are on there are from BEFORE the conversion. I have added about 30 more AFTER the conversion. These show up as listings elsewhere on the site, but are not showing on the map.
I have checked you have 48 Place/Courses listings. I see all 48 listings on map. Please provide page link where you find missing markers for some listings.
Best Regards,
KiranMarch 18, 2019 at 4:28 pm #475159Everything is working wonderfully now. Thank you so much.
All markers are on the map now. It appears that every listing I did AFTER that WARP one were the ones missing. So fixing that one listing, solved that whole problem.
There was another issue of the map not working on the Central Places category (/courses/category/central), when all of the rest of the categories worked fine. The WARP course was in that category, so that’s what was causing that problem. Just so you know that is also related. That is now fixed.
All that from an odd character in the latitude! I will certainly be more careful about pasting those in. Thank you again for all your help.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket