WordPress.org

Ready to get started?Download WordPress

Forums

Sliding Youtube Gallery
[resolved] Function Not Working after Update (7 posts)

  1. Dre4000
    Member
    Posted 2 years ago #

    hi, once i updated the plugin it stops working. This is the function i used :

    <?php syg_display_gallery(); ?>

    and this is the error message i am getting on the page:

    Fatal error: Call to undefined function syg_display_gallery() in /home/passion/public_html/food/wp-content/themes/thesis_184/custom/custom_functions.php on line 141

    http://wordpress.org/extend/plugins/sliding-youtube-gallery/

  2. webEng
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Dre4000, as you can see in updated documentation, the function name you have to call has changed. Now the correct calling method from template editor is:

    getGallery(array("id" => your_gallery_id));

    getVideoPage(array("id" => your_gallery_id));

    Sorry for update inconveniences, but as I want to improve this plugin I have to do a lot of changes...and the changes is always traumatic!

    Thank you for support
    Luca

  3. webEng
    Member
    Plugin Author

    Posted 2 years ago #

    p.s. if this does work, please spend one second to vote the plugin and report if it works with your current version of wordpress.

    Thanks, Luca

  4. webEng
    Member
    Plugin Author

    Posted 2 years ago #

    Ops, it's better you download 1.2.2 thx

  5. Dre4000
    Member
    Posted 2 years ago #

    so would it be:

    <?php getGallery(array("id" => your_gallery_id)); ?>

    or I just put in:

    getGallery(array("id" => your_gallery_id));

  6. webEng
    Member
    Plugin Author

    Posted 2 years ago #

    For example:

    Template => <?php getGallery(array("id" => 1)); ?>

    Post or Page => [syg_gallery id=1]

    Cheers, Luca

  7. Dre4000
    Member
    Posted 2 years ago #

    Thanks, it worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.