Title: Voting code not inserted into page
Last modified: August 20, 2016

---

# Voting code not inserted into page

 *  Resolved [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/)
 * Hi, thanks for the handy plugin. At [http://www.goodboydogblog.com/2012-holiday-pet-photo-contest/](http://www.goodboydogblog.com/2012-holiday-pet-photo-contest/)
   I’m displaying [nggallery id=1] yet I see no voting stars. I’ve added the code
   <?php echo nggv_imageVoteForm($image->pid); ?> to gallery.php as explained in
   the FAQs. I’m using the latest version of the plugin (2.3.2). The images all 
   have “Unlimited votes” allowed. Yet the voting tag doesn’t appear to display 
   anything in the HTML. Same story if I revert to the default Twenty Eleven theme.
   I’ve gotten this voting plugin working on other websites. What’s going on here?
 * [http://wordpress.org/extend/plugins/nextgen-gallery-voting/](http://wordpress.org/extend/plugins/nextgen-gallery-voting/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [shauno](https://wordpress.org/support/users/shauno/)
 * (@shauno)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3494924)
 * If you’ve recently update NGG Voting, then you need to de-activate and re-activate
   to update some database things.
    If you’ve recently updated NGG, then it would
   have overwritten the gallery.php template, so just be sure the voting code is
   still there. It needs to be in the `foreach` loop, but not inside the `<a>` that
   wraps the image?
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3494939)
 * De-activating and re-activating did the trick. Thank you for the excellent and
   timely response!
 *  [Brad H](https://wordpress.org/support/users/bradjaeharrisgmailcom/)
 * (@bradjaeharrisgmailcom)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3495134)
 * NOTHIN7, question about WP socializer- did it delete/ re-count all your facebook
   likes when you switched from Sociable? Thanks man
 *  Thread Starter [Zade](https://wordpress.org/support/users/nothin7/)
 * (@nothin7)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3495135)
 * [@brad](https://wordpress.org/support/users/brad/) H – I believe it did, but 
   you could just test it out and switch back if it doesn’t.
 *  [leetramp](https://wordpress.org/support/users/leetramp/)
 * (@leetramp)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3495137)
 * Thanks for the tip, the De-activate then re-activate seemed to work for me as
   well 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Voting code not inserted into page’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-gallery-voting.svg)
 * [NextGEN Gallery Voting](https://wordpress.org/plugins/nextgen-gallery-voting/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery-voting/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery-voting/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery-voting/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery-voting/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery-voting/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [leetramp](https://wordpress.org/support/users/leetramp/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/voting-code-not-inserted-into-page/#post-3495137)
 * Status: resolved