Quantcast
Channel: help – WordPress.org Forums
Viewing all articles
Browse latest Browse all 13924

YourOwnProgrammer on "No Templates and missing yop-poll-admin.js"

$
0
0

Hey maddysayz

If you want to put the poll code in your template file, please use the code below:

<?php return_yop_poll( $poll_id ); ?>

You need to replace $poll_id with the id of the poll you want displayed.

Also, we have some predefined ids:

<?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

Please let us know if you have any other questions.

Best Regards
YOP Team


Viewing all articles
Browse latest Browse all 13924

Trending Articles