Ready to get started?Download WordPress


[Plugin: NextGEN Gallery] Images in footer.php (5 posts)

  1. Joakim
    Posted 5 years ago #

    I need to put in some images from a gallery in my footer. Just like the sidebar widget, but only in the footer. Is there an code for putting in to the footer.php?

  2. Alex Rabe
    Posted 5 years ago #

    See nggfunctions.php for all codes

  3. Joakim
    Posted 5 years ago #

    I'm not so good at php.
    Could you help me with the code?

    I want eg. 6 thumbs from a gallery/album to be shown.

  4. AdamHeine
    Posted 5 years ago #

    There are a number of functions in there, so it depends on what you want to do.

    If you want to show random pictures, use this function (it's not even in the file that alex mentioned :-P): nggDisplayRandomImages(number_of_pics, height, width);

    Put each of those numbers (number_of_pics, height, and width) inside ' marks. If you want the thumbnails not to be stretched then put '' for both height and width. For example, if you want six, unstretched pictures, you'd type this: nggDisplayRandomImages('6', '', '');

    There's a similar function to show recent images: nggDisplayRecentImages

    Those functions pull from all galleries, I think. I'm not sure how to limit them. Maybe Alex can help you with that.

  5. bravenewniche
    Posted 5 years ago #

    AdamHeine is right about the nggDisplayRandomImages function, but you have to have the NGG Widget Plug-in installed.

    I had NGG, but didn't need the widget portion, so it wasn't activated. As soon as I activated, everything worked just fine.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.