Shortcode not working. How do I display a FooGallery from a php page?
-
I am outputting Albums of FooGalleries on some of my pages and they work as expected. However, on other pages, I output them the same way, passing the shortcode to do_shortcode and echoing the result. It displays the galleries in the albums, but when I click on them it reroutes me to the front page of my site rather than opening the gallery and displaying the images. Am I doing this wrong? It’s been really difficult for me to find documentation on how to do this. What’s offered on the FooGallery site is really bare bones.
I googled and found some github projects where people were using this notation to access FooGalleries, but I don’t know how to display a gallery on a page and have it work properly:
FooGallery::get($post);Can you please point me to a tutorial that explains the right way to do this? I’m confused as to why <?php echo do_shortcode(‘[foogallery…etc]’); ?> works on one page of my site but not another.
The page I need help with: [log in to see the link]
- The topic ‘Shortcode not working. How do I display a FooGallery from a php page?’ is closed to new replies.