[resolved] Form in Sidebar (4 posts)

  1. shortcoder
    Posted 5 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.


  2. DCoda
    Plugin Author

    Posted 5 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.


  3. shortcoder
    Posted 5 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
    Posted 5 years ago #

    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

  • ContactMe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic