plugins only run when shortcode is entered into post body using content editor
-
I hope someone can help. I want to run a gallery in the same place, with the same settings, on every post, so I have entered the [gallery] shortcode directly into the template file using
<?php echo do_shortcode("[gallery link='file' columns='1' orderby='rand' ]"); ?>
This works fine, but I also would like the gallery to display as a lightbox. So I installed the Lightbox Gallery plugin.
Now I can get the gallery to display how I want from within the template, but the plugin will not run . It seems the lightbox plugin only seems to run when the shortcode is actually entered in [the_content].
Does anyone know of a way to force the plugin to run even when it does not see the associated shortcode in the post?, can I do it from within the template, or do have to change where the plug in ‘hooks’ into wordpress.
- The topic ‘plugins only run when shortcode is entered into post body using content editor’ is closed to new replies.