WordPress.org

Ready to get started?Download WordPress

Forums

do_shortcode and plugins (1 post)

  1. ktharri
    Member
    Posted 4 years ago #

    Hi there, I have experienced this same issue with several plugins, two being lightbox gallery plugins and one being a mapping plugin. I want to call shortcodes from within the template so that the end user does not have to worry about deleting or otherwise forgetting how to insert a particular item.

    As an example, I can call the [gallery] shortcode fro within the template and it works almost perfectly. THe gallery displays correctly and is styled. The only error is that the shortcode only seems to activate any associated plugins when it is placed within $the_content, so the plugins remain unactivated when I call the shortcodes only using do_shortcode.

    If I leave the d0_shortcode template tag in, but ALSO add the gallery shortcode in the content editor, then both galleries have the plugin effect applied,

    so my question is, how can I make a shortcode called with do_shortcode still call the plugin.

    nb the plugins this is happening on are
    http://wordpress.org/extend/plugins/lightbox-gallery/
    http://wordpress.org/extend/plugins/lightbox-2/
    and
    and several mapping plugins.

Topic Closed

This topic has been closed to new replies.

About this Topic