WordPress.org

Ready to get started?Download WordPress

Forums

ContactMe
[resolved] Form in Sidebar (4 posts)

  1. shortcoder
    Member
    Posted 3 years ago #

    Has anyone successfully added the contactme form in the sidebar? I'm attempting to place it there using the shortcode in a text widget. I love the recaptcha support of this plugin (which made me switch from contact form 7), but really need to get it in the sidebar.

    http://wordpress.org/extend/plugins/wp-contactme/

  2. DCoda
    Member
    Plugin Author

    Posted 3 years ago #

    shortcodes only work in posts and pages where they can be filtered and replaced with the correct form.
    They will not work with text widgets.

    If you can find a widget that can display a post in the sidebar you might be able to get it working like you want.

    Regards
    D

  3. shortcoder
    Member
    Posted 3 years ago #

    Thanks for the quick reply. So I've added
    <?php echo do_shortcode('[ContactMe form="Sidebar"]'); ?>
    into the page template file and it does not work. Any other ideas without adding it to a post?

  4. shortcoder
    Member
    Posted 3 years ago #

    UPDATE:
    As you suggested, I created a new blank post then inserted this into the sidebar portion of the page template which worked:
    <?php query_posts('p=206'); if(have_posts()) : the_post(); ?>

    <?php the_content(); ?>

    <?php endif; ?>

    Thanks for your assistance!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic