Contact form in sidebar (2 posts)

  1. Machi
    Posted 7 years ago #

    Hi, I'm looking for plugin which could be used in sidebar and user can type his name/email/web/opinion and this plugin will save it to WordPress database and show it in WP admin.

    (if there isn't anything like that - is there at least contact form to sidebar which can email you these things? I didn't find anything).

    Thanks a lot...

  2. ars-novum
    Posted 6 years ago #

    Hey Machi,
    that's easy:

    1.) Go get the "Contact Form 7" plug-in and install it.

    2.) Create a form as discribed egg. [contact-form 1 "Call back form"].

    3.) Create a new post. In that post you put the Code egg. [contact-form 1 "Call back form"]. Now create a new Category "forms" - that's just for you to exclude further on this category from your published posts.

    4.) Go to administation panel and find out what is the post/page-id egg. it's "96"

    5.) Open you sidebar.php and include their the following code:

    <?php query_posts('p=96'); if(have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endif; ?>

    6.) Save and upload. Finish!

    Now you can easy change settings etc. of the contact form over the backend.



Topic Closed

This topic has been closed to new replies.

About this Topic