• 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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • See nggfunctions.php for all codes

    Thread Starter Joakim

    (@jokka)

    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.

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Images in footer.php’ is closed to new replies.