GeoDirectory SupportMap icons keep reverting to parent category icon – GeoDirectory Support https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/feed Thu, 25 Dec 2025 19:29:35 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45218 <![CDATA[Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45218 Fri, 10 Jul 2015 07:45:03 +0000 jimmymoto I have spent a great deal of time creating map icons for subcategories to visually separate the variety of business types on the map.

For example, I have a parent category “Automotive” and subcategories “mechanics”, “car wash”, “auto body”, etc –each with their own icon.

After importing listings (categories pre-setup with custom icons), the listing icons all revert back to the parent icon (ie. all listings just show “automotive” parent icon). The default_category column in my csv import file is ignored.

In phpMyAdmin, I noticed that the “default_category” id always reflects the lowest numerical category id in the “gd_businesscategory” column. Since I methodically created all my parent categories before the subcategories, the parent category id is logically always lower than the subcategory.

As far as I remember, it’s recommended to ensure a listing is listed under the parent category as well as the subcategory (otherwise “auto body” listings won’t show up when someone selects the parent “automotive” category?)–which makes me think this icon problem is a bug.

How can I get GD to display the subcategory icon instead of the parent icon? Having the icon determined by the lowest category id number is a big problem for my sanity (spent days creating hundred of icons).

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45219 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45219 Fri, 10 Jul 2015 07:48:45 +0000 jimmymoto https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45220 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45220 Fri, 10 Jul 2015 08:04:04 +0000 Guust I have changed GD > Business settings > category field > to ajax chained
That allows you to choose a default category for the listing and that should change the marker.

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45221 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45221 Fri, 10 Jul 2015 08:05:14 +0000 Guust https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45222 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45222 Fri, 10 Jul 2015 09:40:48 +0000 jimmymoto OK, I see this working now. I initially chose “multiselect” since I found “ajax-chained” to be confusing to use.

However, I tried csv import again and the default_category fields are not importing properly. This means I’d need to edit each post to correct the default category.

This problem would relate to the last support topic I made:
https://wpgeodirectory.com/support/topic/cannot-import-expire_date-package-id-etc/

Can you please check into whether or not importing default_category from csv should work?

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45223 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45223 Fri, 10 Jul 2015 09:55:50 +0000 jimmymoto Hmm. Now my site hangs when trying to edit any listings–even CPT’s that have not been changed to ajax-chained. I was able to play around with editing a listing once (getting a feel for ajax-linked selections), but attempting to edit another listing caused hang-up.

I tried changing GD > Business settings > category field > back to multiselect but that did not solve the problem.

All I did was delete all gd_business listings and reimport. When I hit the back button after listing edit attempt hangs, sometimes the previous pages takes a while to load, then the site is snappy again (except still hangs on listing edit).

Any idea what has happened?

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45226 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45226 Fri, 10 Jul 2015 13:02:04 +0000 Guust Export your CSV file to see what columns you should have, I doubt there is a default_category column. To make a category the default category, you need to add it as the first category in the field.

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45245 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45245 Fri, 10 Jul 2015 17:16:21 +0000 Paolo Just FYI, the default category is only needed for the URL of the listing detail page.

When a listing is added to more than one category, Google Maps script will use the icon of the category with lower ID.

Only if the listing belongs to only 1 category you can be sure the correct marker will be used all the time.

This is a problem we faced 1st with GeoTheme 4 years ago, for which unfortunately there is no possible solution.

Google Maps would have to change their script. It is not something we can force.

Thanks

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45296 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45296 Sat, 11 Jul 2015 05:42:07 +0000 jimmymoto Thanks for the explanation Paolo. I’ll have to redesign a few icons to be a little more generic.

btw. The hanging problem was due to the GD social importer plugin (I keep forgetting to disable it when I import my listings). It was quite busy posting the imported listings in the background.

]]>
https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45304 <![CDATA[Reply To: Map icons keep reverting to parent category icon]]> https://wpgeodirectory.com/support/topic/map-icons-keep-reverting-to-parent-category-icon/#post-45304 Sat, 11 Jul 2015 07:44:55 +0000 jimmymoto I spoke too soon about the GD social importer causing the hang-up (my assumption). I’ll start a new support thread.

]]>