WordPress.org

Support

Support » Plugins and Hacks » [Resolved] add map without shortcode

[Resolved] add map without shortcode

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

    @spikefinned

    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

    Hi Markus

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

    Hi!

    Yes, it works. I use this code

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

    Just use your id´s.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] add map without shortcode’ is closed to new replies.