WordPress.org

Ready to get started?Download WordPress

Forums

Simply Poll
hardcode poll into alternate sidebar (2 posts)

  1. dural77
    Member
    Posted 2 years ago #

    To start, I HAVE NO PHP knowledge. I am good at following directions and whatnot. If you leave an answer, please type all code/syntax whatever is needed.

    I have an alternate sidebar working for one page. I need to hardcode a poll into the alternate sidebar. I have this:

    <div id="pollbox">
    [poll id='1']
    </div>

    All it shows is literally this:
    [poll id='1']

    I tried adding the filter add_filter('widget_text', 'do_shortcode'); into the functions.php under /wp-content/themes/boilerplate-child.

    I also have no idea how to do whats recommended in this post: https://wordpress.org/support/topic/plugin-simply-poll-simply-poll-integration-in-template?replies=3

    Why is this so hard?!?!! I am trying to just add a poll to the alternate side bar on this page http://sportable.org/youth/ and I just can't freaking get it to work.

    I guess my question is what code do I need to HARDCODE the poll into my sidebar2.php file. Please HELP!!

    http://wordpress.org/extend/plugins/simply-poll/

  2. Omnilogic
    Member
    Posted 2 years ago #

    Using the WordPress do_shortcode() function should work.

    <div id="pollbox">
    <?php echo do_shortcode("[poll id='1']"); ?>
    </div>

    Just add the above into your sidebar template.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.