WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sandrogg
    Member
    Posted 1 year ago #

    Hi,
    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?

    http://wordpress.org/plugins/nextgen-download-gallery/

  2. sandrogg
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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.

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic