Support » Plugins » [Plugin: WP-Polls] How to make poll into fancybox

  • Hello, i’m trying to make my polls into fancybox. I made poll.php with this code:

    <?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
        <li>
            <h2>Polls</h2>
            <ul>
                <li><?php get_poll(2);?></li>
            </ul>
            <?php display_polls_archive_link(); ?>
        </li>
    <?php endif; ?>

    and made link with class="fancybox-iframe" to this file.
    This link placed at main page, but in fancybox no result. After it i placed code like this:

    <h2>Polls</h2>
    <ul>
    <li><?php get_poll(2);?></li>
    </ul>

    and get error “Call to undefined function get_poll()”.
    Why function become undefined? When i place this code into main page it’s work.

    P.S. sorry for my english, hope u’ll understand what i mean.

Viewing 1 replies (of 1 total)
  • you can’t put it in an iframe.

    <?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
        <div class="fancybox">
            <h2>Polls</h2>
            <ul>
                <li><?php get_poll(2);?></li>
            </ul>
            <?php display_polls_archive_link(); ?>
        </div>
    <?php endif; ?>
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WP-Polls] How to make poll into fancybox’ is closed to new replies.