Title: Poll for PHP Page
Last modified: August 24, 2016

---

# Poll for PHP Page

 *  [raghukalia2005](https://wordpress.org/support/users/raghukalia2005/)
 * (@raghukalia2005)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/poll-for-php-page/)
 * Hi,
 * I am using Yop Poll Plugin. I want to display Yop Poll in my .aspx file. I am
   thinking to create .php file in the wordpress root folder and using below code
   to display current active poll and using iframe i will get the url and display
   in .aspx file. i am not sure i am right or wrong.
 * <?php if (function_exists(‘vote_poll’) && !in_pollarchive()): ?>
    <div class=”
   module module-poll”> <!– <?php get_poll();?> old wp-poll code –> <?php echo do_shortcode(‘[
   yop_poll id=”-1″]’); ?> </div> <!– /.module –> <?php endif; ?>
 * [https://wordpress.org/plugins/yop-poll/](https://wordpress.org/plugins/yop-poll/)

The topic ‘Poll for PHP Page’ is closed to new replies.

 * ![](https://ps.w.org/yop-poll/assets/icon-256x256.png?rev=3524390)
 * [YOP Poll](https://wordpress.org/plugins/yop-poll/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yop-poll/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yop-poll/)
 * [Active Topics](https://wordpress.org/support/plugin/yop-poll/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yop-poll/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yop-poll/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [raghukalia2005](https://wordpress.org/support/users/raghukalia2005/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/poll-for-php-page/)
 * Status: not resolved