• I want, that number of votes would be shown in single image page.

    I copied line from view.php:
    <span class="polaroid_votes"><?php printf(_n("%d vote", "%d votes", $page_row['sum_votes'], 'wp-photocontest'), $page_row['sum_votes']); ?></span>
    and pasted it to viewimg.php.
    But it didn’t sumed up, and showed zero votes.

    Maybe I use bad variables?

    Is there a possibility to do that?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author frekel

    (@frekel)

    Use:

    <span class="polaroid_votes"><?php printf(_n("%d vote", "%d votes", $image_details['sum_votes'], 'wp-photocontest'), $image_details['sum_votes']); ?></span>

    Note the image_details instead of the page_row 😉

    Greets,
    Frank

    Thread Starter MindaugasLT

    (@mindaugaslt)

    Great, it worked. THANKS!

    Plugin Author frekel

    (@frekel)

    No problem!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: PhotoContest Plugin] Make number of votes shown in image page’ is closed to new replies.