[Plugin: jQuery Colorbox] Colorbox working from shortcode NGG but not from PHP
-
I am trying to integrate Nextgen and Colorbox in a PHP template.
My problem is that when I just normally insert a [nggallery id=8] it inserts a gallery and Colorbox works perfectly on this, with previous and next relations, etc.
However when I try to insert it from PHP template it doesn’t work.
So while:
[nggallery id=8]
works when written on a page, neitherecho nggShowGallery( 8, '' );
nor
echo do_shortcode('[nggallery id=8]');
works in PHP. It’s very strange and I don’t understand what is happening. What is the difference between [nggallery id=8] and echo do_shortcode(‘[nggallery id=8]’); that one triggers Colorbox while the other doesn’t? Of course I can force Colorbox to all images, but then I loose the previous <> next relations.
Did anyone experience something similar? If yes, did you find a solution?
- The topic ‘[Plugin: jQuery Colorbox] Colorbox working from shortcode NGG but not from PHP’ is closed to new replies.