OS OpenSpace Maps
[resolved] Adding a link to a marker (4 posts)

  1. annakyn
    Posted 4 years ago #

    Hi. I'm trying to add a link to a marker. Ideally I'd like clicking on the marker to open up a popup with a link in the popup, but I can't seem to achieve this.

    Any ideas?


  2. Jon Lynch
    Plugin Author

    Posted 4 years ago #

    If you want to add a link into your text you will need to use the HTML editor. Just use html but use single quotes for the href attribute, for example: [osmap markers="ST3430362661;My Example Link"]
    Hope this helps,

  3. annakyn
    Posted 4 years ago #

    Thanks. I'm getting there with it! I'm also having to use \' instead of just ' so that the php works ok (running the shortcode from the page template.

    I'm trying to automatically generate a map using php by querying all posts that have a custom field which is set as a grid reference. I've not quite got it automatic, but its a lot easier than manually doing it.

    Keep up the good work with the plugin!

  4. Jon Lynch
    Plugin Author

    Posted 4 years ago #

    The code in my first post now appears mangled try [osmap markers="ST3430362661;<a href='http://example.com'>My Example Link</a>"]

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OS OpenSpace Maps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic