connect wpgmaps to custom post type

New home Forums Pro Add-on Pre-sale questions connect wpgmaps to custom post type

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #68677
    wmarx
    Participant

    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.

    #68741
    Vanessa
    Moderator

    Hi 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 Rufo

    #68754
    wmarx
    Participant

    Hi 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

    #68760
    Matthew
    Moderator

    Hi 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,
    Matthew

    #68769
    wmarx
    Participant

    Hi 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

    #68770
    wmarx
    Participant

    Hi 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

    #68791
    Matthew
    Moderator

    Hi 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,
    Matthew

    #68799
    wmarx
    Participant

    Hi Matthew,

    thank you very much.

    You helped me a lot.

    Kind Regards,

    Wolfram

    #68805
    Matthew
    Moderator

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.