• Hi

    When I change the image of a mark that is already made and that is assigned to posts, the posts that have the same mark have the default mark again. This causes you to have to go post by post to reassign the mark you had before. I just realized when I had more than 60 posts and I had to go one by one. oh my god!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Camille V

    (@socrapop)

    Dear Sermalefico,

    I am aware of this, another user warned me by email a week ago.

    It’s not possible at the moment to “remove” or replace a marker, it’s a feature I still need to add in the plugin because I did not think of it :/

    Let me explain:
    When you set a marker on a post, it’s saving the URL to the markers’ image in the database. So if you remove/change the marker from Travelers’ map, it won’t remove the linked posts images.
    If you remove/change the image from your wordpress media library, the markers on your map will have a broken image.

    So for now, if you want to change one marker to another marker, I suggest you change the image directly in your ftp (in wp-content/uploads/*year/*month) or using this plugin to replace your marker image directly: https://www.ads-software.com/plugins/enable-media-replace/
    When installed, go to your media library, find your marker image and click on “Upload a new file”, then load the new image, keeping the same name.

    I know it is not optimal, but for now that’s the only way. I will start working on it after my vacations ??

    Thread Starter sermalefico

    (@sermalefico)

    Hey, this also happens when you do a migration, the posts with an assigned bookmark that has a custom mark lose the path of the image, even if you do a search and replace of the new path of the web. The posts lose the path of the image and it is not possible to replace. Again you have to go post by post assigning the custom mark again.

    Plugin Author Camille V

    (@socrapop)

    Dear sermalefico,

    Thank you, yes I am aware of this, even a migration from HTTP to HTTPS is messing with the thumbnails unfortunately.

    But a search and replace in your database should work, this is how it’s saved in the database (as a json string) :
    {"latitude":"38.97763","longitude":"21.50105","markerdata":["https://travelersmap.test/wp-content/uploads/2020/11/cttm_markers-red.png",32,45],"multiplemarkers":false,"customtitle":"","customexcerpt":"","customthumbnail":""}
    A regex search and replace in the “wp_postmeta” table should do.

    I can’t come with a built-in solution right now, I’m very busy in my life.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with markers when edits a marker with new image’ is closed to new replies.