WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery Voting
[resolved] Code to Display voted images of a gallery to user (2 posts)

  1. davidcrespo
    Member
    Posted 1 year ago #

    What would be the code to display the voted images of a gallery?
    I need to display it to my user, let step I will try to add the cancel vote option to user.

    All the best,
    David.

    http://wordpress.org/extend/plugins/nextgen-gallery-voting/

  2. shauno
    Member
    Plugin Author

    Posted 1 year ago #

    Hi David
    So you are trying to display a list of images that have 1 or more votes? You aren't going to be able to just call a function from the plugin, but it's possible if you know a little SQL.

    The votes are stored in a table named wp_nggv_votes, where the column pid is the image's pid in NGG's wp_ngg_pictures table. You should be able to write a query to join the 2 tables and get that list you want.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic