Ready to get started?Download WordPress


NextGEN Download Gallery
[resolved] php shortcode (do_shortcode) (3 posts)

  1. sandrogg
    Posted 11 months ago #

    firstly congratulation for the plugin. I have just download it and expect a lot from it.

    I would like to insert a shortcode in a template page, with the wordpress function:
    <?php echo do_shortcode( $content ) ?>

    for example:
    <?php echo do_shortcode("[nggtags_ext gallery="dog,cat" template=download]") ?>

    but doesn't work, (the entire page doesn't compile).

    I use this php technique with theme Custom Community and other plugins like NGGallery and works perfectly...

    How can we fix it?


  2. sandrogg
    Posted 11 months ago #

    Ok, I found the error, it was typographical...

    It have to use simple quotes, instead double:
    <?php echo do_shortcode('[nggtags_ext gallery="dog,cat" template=download]') ?>

    and not:
    <?php echo do_shortcode("[nggtags_ext gallery="dog,cat" template=download]") ?>

    I understand that the admin delete this topic, because it has nothing to do with the plugin

  3. webaware
    Plugin Author

    Posted 11 months ago #

    G'day sandrogg,

    Glad to hear you found the problem. Be aware that NextGEN Gallery 2.0 has broken this shortcode, and has also broken albums based on tags. I advise you not to update to NextGEN Gallery 2.0 for a while until both Photocrati have fixed their legacy support and I've fixed my support for their new version.



You must log in to post.

About this Plugin

About this Topic