WordPress.org

Ready to get started?Download WordPress

Forums

add-rel-lightbox
[resolved] how to use plugin with gallery tag in template file (2 posts)

  1. mxpimp47
    Member
    Posted 1 year ago #

    I would like to use this plugin when I have the gallery tag embed'ed into a template instead of normal usage within a post. What would I have to add to my functions file for this to work?

    http://wordpress.org/extend/plugins/add-rel-lightbox/

  2. DefProc
    Member
    Plugin Author

    Posted 1 year ago #

    If you've got a [gallery] shortcode outside of the_content, then you'll need to add a filter to the plugin's code that to pass it the page at the correct time. I don't know which filter you'll need (there's a Filter reference in the codex) however, if you're just coding it in one place, it might be easier to just embed the code from my plugin straight into your theme.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.