WordPress.org

Ready to get started?Download WordPress

Forums

Creating Random Pic in Sidebar with myGallery (4 posts)

  1. iring1903
    Member
    Posted 7 years ago #

    Hi,
    Would like to know how to create random pic in sidebar with the myGallery Plugin.

    Thanks in advance.

  2. drmike
    Member
    Posted 7 years ago #

    See point #3 on the plugin author's help page.

    Hope this helps,
    -drmike

  3. iring1903
    Member
    Posted 7 years ago #

    Thanks for your help.
    However, nothing happen when I added the code into the sidebar.
    I am using the sidebar widget. Not sure is is this that caused the problem.
    Thanks in advance

  4. Christopher
    Member
    Posted 7 years ago #

    I had a similar issue, everything looked ok but no image appeared. Finally tracked it down to the single quotation marks ' '

    It should be:
    <?php if (function_exists('myrandompic')) myrandompic(); ?>

    NOT
    <?php if (function_exists(‘myrandompic’)) myrandompic(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic