New home › Forums › Pro Add-on › Import Caterories from advanced import of ACF
Tagged: ACF, categories mapping, import
- This topic has 9 replies, 3 voices, and was last updated 1 year, 10 months ago by Dylan.
-
AuthorPosts
-
July 7, 2020 at 12:03 pm #60056RenaudParticipant
Hello,
I have successfully imported my mapping data from ACF fields of a CPT, using advanced import. But the import does not link the categories. I created in ACF and in your plugin the same category names, but the WordPress slug and the ID used are different. How to automatically link to be able to update my data using only advanced import.
thank you in advance
Regards
Renaud
July 8, 2020 at 9:42 am #60066DylanModeratorHi Renaud,
Thank you for getting in touch, we do appreciate your time.
Unfortunately, the importer will not import the categories automatically, instead, these will need to be mapped to the appropriate category ID as listed under Maps -> Categories.
Could I ask you to confirm how the import was performed? Have you imported this data via CSV or JSON? Alternatively, are using our ACF integration?
I look forward to hearing back from you.
July 8, 2020 at 12:39 pm #60068RenaudParticipantHello Dylan,
I import data with your ACF Integration.
I cannot use a slug with a numeric identifier for the source categories, just for import. The slug is important for understanding urls.
I’m sad you don’t use slugs for categories for WP Google Maps, like in WordPress.Have a good day
Renaud
July 8, 2020 at 4:08 pm #60070DylanModeratorHi Renaud,
Thank you for getting back to me.
Although it is not possible to link a slug directly to a category in the case of marker data, this is due to the act that we make use of the category ID for filtering and do not provide permalinks in the same way as WordPress core.
My apologies for any inconvenience caused.
May 13, 2021 at 7:41 am #68870Jonathan ThompsonParticipantHello,
Has there been any progress on this issue? I have a similar problem. I have a front-end ACF form that is used for user generated locations recommendations. The fields I’m using are:
marker_category: Taxonomy
name: Text
location_name: Text
location: Google Map
message: Text AreaThis form has a moderation step. When submitted it creates a new post with a status of draft. The moderator will then login as an Admin and clean-up or delete any inappropriate content. Initially I was trying to use the dynamic ACF integration, but found that I couldn’t assign custom pins to these markers. I then found ACF import feature, but the one major downside is that as more markers get approved/published each successive import either creates duplicate markers or wipes the existing map data and replaces it with new data depending on the options you select at import. This wouldn’t be a problem at all except that I can’t seem to figure out a way to get the categories to import into the Marker data.
Is there something I’m mossing or is there a solution that you can recommend to either:
1. get the categories into the marker data
2. or maybe import only new markersMay 13, 2021 at 8:01 am #68873DylanModeratorHi Jonathan,
Thank you for getting in touch, we do appreciate your time.
Unfortunately, the ACF importer does not account for previously imported markers at this stage, this is due to the fact that our current implementation does not store any data on when/how it was created. Effectively, it is a new marker based on the information available during the import.
This means that repeatedly running the ACF importer will result in duplicate markers at the moment. The alternative is to set the import to replace existing markers, which removes all markers from the map and reimports them. As you have mentioned, this causes issues if you have adjusted the marker data internally.
Additionally to this, we do not currently support importing categories via the ACF integration. We realize this is a shortcoming for ACF users and it has been logged on our roadmap here: https://trello.com/b/cbO0ZZP9/wp-google-maps-roadmap
Our current goal is to fully overhaul the ACF integration in the next major version, which would include both the live ACF integration and the import functionality. Doing so will allow us to support additional field controls such as the marker icon/category respectively.
At this time we do not have an interim patch available for this as it requires extensive architectural changes to our core code.
We do apologize for the inconvenience this has caused in the meantime.
May 13, 2021 at 4:21 pm #68884Jonathan ThompsonParticipantDylan, thank you for your quick response.
The reason I was using the import feature was because I couldn’t get Custom Icons to work with the ACF integration option. Is there any interim work around or solution to allow for that based on WP native Categories?
So using ACF integration option I have posts and they would show up on the map automatically, but all the pins are red default. Is there a way to get custom icons based on category?
May 14, 2021 at 4:31 pm #68899DylanModeratorHi Jonathan,
Unfortunately, the dynamic model doesn’t allow for native categories to be mapped to icons managed by the plugin at the moment, that’s mostly due to the core ACF integration lacking full support for these overrides.
It’s something that is high on our priority list for the next major release which should help streamline the entire experience for more advanced use cases, such as mapping native categories, managing icons as part of the ACF fieldset and more.
In the meantime, I’d be happy to assist you with mapping this from the default red icon to a specific marker icon for all ACF markers. We can do this on the fly with a Custom JavaScript block which only affects ACF markers on the frontend.
If that’s something that interests you in the meantime, I’d like to ask that you open a support ticket here: https://www.wpgmaps.com/contact-us/ – As this will allow us to work more closely together toward a short term solution for now.
Looking forward to hearing back from you.
May 14, 2021 at 10:51 pm #68911Jonathan ThompsonParticipantHi Dylan,
If you can provide the code to swap the default red icon to a specific marker of our choosing. That would be a step in the right direction. Thanks.
May 18, 2021 at 3:52 pm #68993DylanModeratorThis reply has been marked as private. -
AuthorPosts
- You must be logged in to reply to this topic.