• Resolved andyleery

    (@andyleery)


    Hello.

    I would like to display the current voting of yop poll on my homepage. Therefore I need a code like this (wp polls):

    <?php if (function_exists(‘vote_poll’) && !in_pollarchive()): ?>

    <?php get_poll(25);?>

    <?php display_polls_archive_link(); ?>

    <?php endif; ?>

    I couldnt find any php code, only the standard [xxx] variables.
    Can somebody please help me with this?

    Thank you!

    https://ww.wp.xz.cn/plugins/yop-poll/

Viewing 1 replies (of 1 total)
  • Thread Starter andyleery

    (@andyleery)

    I finally found it:

    <?php return_yop_poll( -1 ); ?> – will display current poll
    <?php return_yop_poll( -2 ); ?> – will display last poll
    <?php return_yop_poll( -3 ); ?> – will display a random poll from your poll list

Viewing 1 replies (of 1 total)

The topic ‘Call voting over PHP Code’ is closed to new replies.