WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. annakyn
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/os-openspace-maps/

  2. Jon Lynch
    Member
    Plugin Author

    Posted 2 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,
    Jon

  3. annakyn
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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

About this Topic