WordPress.org

Ready to get started?Download WordPress

Forums

ImageMapper
[resolved] add map without shortcode (4 posts)

  1. markus.zeeh
    Member
    Posted 1 year ago #

    Hi!

    How can i add a map without a shortcode directly inside my template?

    Thanks for help!
    M

    http://wordpress.org/extend/plugins/imagemapper/

  2. Spike
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You can use get_imgmap_frontend_image($id, $element_id) function, where $id is the post id of the image map and $element_id is a unique id for the HTML element. And the value must be echoed.

    I haven't really thought about using maps in templates, but that should work flawlessly. It's nice to see people inventing new ways to use the plugin.

    Spike

  3. estherrosie
    Member
    Posted 1 year ago #

    Hi Markus

    Did you manage this - I am trying to do the same thing but can't get the piece of code quite right

  4. markus.zeeh
    Member
    Posted 1 year ago #

    Hi!

    Yes, it works. I use this code

    <?php echo get_imgmap_frontend_image('86', '79467984'); ?>

    Just use your id´s.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.