Forums

[Plugin: NextGEN Gallery ] PHP Code Accessing Gallery (1 post)

  1. jedix878x
    Member
    Posted 1 year ago #

    Hi all,

    In an blog post entry, I have two views that the user can switch from. The first view is a straight list view of all the images that is included in a gallery for that specific post. The second view that the user can switch to is an image and some text. This image, however, needs to be randomized from the gallery. So every time the page is accessed or refreshed, the image changes.

    Does anyone know how to access a gallery for a specific post, which in turn I can use to access a random image from that gallery? All I have as a reference is the postID, which I have no idea how to look for an attached gallery. I would like to do this in PHP.

Topic Closed

This topic has been closed to new replies.

About this Topic