• Resolved jakobgruenthaler

    (@jakobgruenthaler)


    Dear Camille V,

    thank you for the great plugin. I have an issue with the custom excerpt field. Tried to fix it myself but couldn’t find the issue. Maybe you can help:

    I would like to display html links in my custom excerpt so that users can follow a link directly from the marker-popup in the map view. However, every time I enter html in the custom excerpt field and save the post, the data (as well as lat & long data) gets deleted. I tried to modify the hmtl purifier so that it allows html but this did not seem to work.

    Many thanks in advance and kind regards,

    Jakob

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

    (@socrapop)

    Dear Jakob,

    It seems the meta boxes content are already sanitized by WordPress itself (I tried to var_dump before HTML purifier is executed, and the <a> link with href is already removed)

    It seems you have some development knowledge, did you know the latest version of the plugin added filters to interact witht he popover content ? I wrote something in the documentation for adding custom content to the popovers : https://camilles-travels.com/get-started-with-travelers-map-wordpress-plugin/#filters

    You could do exactly as it’s written in the documentation: add an ACF field, and add a button with the link as the content.

    I will try to have a look at why the link is sanitized in the meta box in the first place, but I think you should use the filter if you know how to do it ??

    Thread Starter jakobgruenthaler

    (@jakobgruenthaler)

    Dear Camille,

    I needed some time to figure some things out. I am still new to this. I got it to work however. Many thanks to your quick and helpful reply!

    Best regards,

    Jakob

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom excerpt disappearing’ is closed to new replies.