New home › Forums › Pro Add-on › Pre-sale questions › connect wpgmaps to custom post type
Tagged: Custom Post Type
- This topic has 4 replies, 1 voice, and was last updated 1 year, 10 months ago by Matthew.
-
AuthorPosts
-
May 2, 2021 at 12:56 am #68677wmarxParticipant
Hello,
i have a custom post type named travel reports. I want to show them in the map in the way that the report is located in the map where the report is about. So i need to connect the wpgmaps with my custom post type. Is this possible? I use two plugins. Advanced custom fields and Custom Post Type UI for creation of the custom post types.
Better to say I want to show the title, the author, an image and the link to the custom post (travel report) in the marker, also it has to be sortable by categories of the custom post type.May 5, 2021 at 2:09 pm #68741VanessaModeratorHi there,
Thank you so much for getting in touch, we do appreciate your time tremendously.
Unfortunately, the Advanced Custom Fields feature will only load a marker with the title with a link to a specific post.
Should you wish to read more about integrating Advanced Custom Fields with our Plugin, could I kindly ask you to please have a look at our documentation here: https://www.wpgmaps.com/documentation-advanced-custom-fields-integration/
I do apologize if this causes any inconvenience.
Kind Regards,
Vanessa RufoMay 6, 2021 at 10:04 am #68754wmarxParticipantHi there,
thank you for the answer!
Is it possible to adjust this feature so that an image, a description etc. is possible to be de displayed in the marker?
Is is it possbible to use an own custom post type to be displayed in the map?
Kind Regards,
Wolfram Marx
May 6, 2021 at 12:20 pm #68760MatthewModeratorHi Wolfram,
Matthew here, and I will be assisting you further.
Thank you for getting back to us and for your time on this, it is much appreciated.
Unfortunately adjusting this feature so that an image, description and other content may be displayed in a marker is not possible as Advanced Custom Fields can only be added to Post Types – the markers are not stored as posts, instead, they are stored as individual rows within a custom database table.
We have thus developed our own internal Custom Fields section found under Maps -> Custom Fields whereby you may create your own custom fields and enter a value for them in the Marker Editor.
I hope this answers your question?
Should you have any further questions, I am more than happy to answer them.
Kindest Regards,
MatthewMay 6, 2021 at 6:17 pm #68769wmarxParticipantHi Matthew,
thank you for your answer and your time.
It answers my question partly. I think, this means, I would need to edit two datasets for each travel report. One dataset is my own custom post type, the other one is in the custom database table of your plugin.
Is there any better solution? Can I get access on the datasets in your custom table via the $posts variable and filter it by post type?Thank you very much!
Kind Regards,
Wolfram
May 6, 2021 at 6:25 pm #68770wmarxParticipantHi Matthew,
it´s me again.
So i will have the dataset in the plugin database table with custom fields for the marker and the link to the travel report dataset itself.
and i will have the travel report dataset itself.
how can i link the travel report dataset to the marker dataset?
Thank you!
Kind Regards,
Wolfram
May 7, 2021 at 2:00 pm #68791MatthewModeratorHi Wolfram,
Thank you for your continued time and patience on this, I really appreciate it!
Yes that is correct, the markers and data in your custom post type datasets will need to be edited.
With regards to an easier solution, using the import feature in WP Google Maps (Maps -> Advanced -> Import) may assist you in bulk editing your markers if you are able to place your marker value changes in a CSV file, and then import the changes to WP Google Maps.
However, the CSV file will require a specific format, which I am more than happy to assist you in reformatting your file should you need.
I hope this helps?
Kindest Regards,
MatthewMay 8, 2021 at 7:27 am #68799wmarxParticipantHi Matthew,
thank you very much.
You helped me a lot.
Kind Regards,
Wolfram
May 9, 2021 at 8:04 am #68805MatthewModeratorHi Wolfam,
Thank you for getting back to me and for your most valued time, I really appreciate it!
I am most happy to hear that, and it was my great pleasure assisting you with this.
If you ever have two minutes spare, please kindly consider reviewing our plugin at https://wordpress.org/support/plugin/wp-google-maps/reviews/#new-post?
It would really mean the world to me! And if possible, please could I kindly ask you to mention both your name and mine in the review for administrative purposes as this would be a tremendous help?
Should you require any further assistance, I am more than happy to help.
Thank you so much for your time and patience once again.
Thank you so much, and have a fantastic weekend!
Kindest Regards,
Matthew -
AuthorPosts
- You must be logged in to reply to this topic.