Contact Form Creation in WordPress - Create your own contact form as a simple plugin

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 134

  • @arashjavadi3090
    @arashjavadi3090 ปีที่แล้ว +1

    You are a genius, I luv the way you write your codes and explain them. Sometimes I only chill and watch your vids :))

    • @jherbison
      @jherbison  ปีที่แล้ว

      Thank you so much!

  • @jherbison
    @jherbison  5 ปีที่แล้ว +5

    I love developing in WordPress and teaching others to develop in WordPress. Let me know what you guys are looking for in WordPress and I can add it to the list of videos.

    • @sai_charan
      @sai_charan 5 ปีที่แล้ว +1

      WooCommerce :)

    • @jherbison
      @jherbison  5 ปีที่แล้ว +1

      Sai, thank you for the comment. I typically stay away from prebuilt themes and plugins.. As wooCommerce has helped a lot of people sell things on their website, I just don't recommend it. WooCommerce is a great temporary platform. Get it up and running to sell your items while you develop a custom shopping cart for your website. I can't recommend it to clients or anyone else.

    • @adante407
      @adante407 4 ปีที่แล้ว +2

      What about maybe a complete theme development from scratch? Or Custom Post Types & Taxonomies? ACF from scratch? Or maybe Gatsby front end WP backend looks interesting. You make great tutorials 👍 much appreciated.

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      @@adante407 I have done one on Custom Post Types. I have been thinking about doing a full theme development video, but it just takes so long.. So much to it to do it right.

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      @@adante407 Thank you for the compliment and comment.

  • @asht2058
    @asht2058 4 ปีที่แล้ว +6

    Love how you break down the process that even a newbie can follow. Subscribed your channel for more 🙂

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      Thank you for the awesome comment.

  • @oxblackiexo268
    @oxblackiexo268 4 ปีที่แล้ว +1

    Hello Joshua, I wanted to say few words and i hope you don't mind me saying it.
    .
    .
    .
    .
    .
    .
    .
    .
    .
    .
    You are a LEGEND !!!!.

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      Awesome! Thank you for the compliment, thank you for watching and commenting.

  • @imalinethmini7719
    @imalinethmini7719 ปีที่แล้ว +1

    the first time I created a plugin . thank you very much.

    • @jherbison
      @jherbison  ปีที่แล้ว

      That’s awesome. Congrats

  • @HCoRE8
    @HCoRE8 3 ปีที่แล้ว +5

    Can you please do more tutorials for Wordpress like these? It's very helpful, thank you.

    • @jherbison
      @jherbison  3 ปีที่แล้ว +1

      Thank you for watching and commenting.. Yes, I have plans to do some more just after the holidays!

  • @DharmYogi
    @DharmYogi 7 หลายเดือนก่อน

    this is great Josh. Thank you. I am going to try this on my site and put it together. Its way better then getting free once and having to deal with bugs. Now I can manage it.

  • @omidzzz4086
    @omidzzz4086 2 หลายเดือนก่อน

    Goin over the playlist. Really nice and helpful Josh :] thanks man

    • @jherbison
      @jherbison  2 หลายเดือนก่อน

      Thank you for watching and commenting.

  • @sunilbiyala8470
    @sunilbiyala8470 3 ปีที่แล้ว +1

    Bro you are awesome and today I started watching your videos nice things you have covered. Thanks man.

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      Awesome. Thank you. Good luck.

  • @claudiacaron2931
    @claudiacaron2931 2 ปีที่แล้ว +1

    Great video, Josh. Very helpful. Thanks.

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      You’re welcome. Thank you for watching and commenting.

  • @jimlanpheer5281
    @jimlanpheer5281 ปีที่แล้ว

    Great video, i learned a lot from this! Since this was 3 years ago now, i'll be looking for other videos where you might have expanded on this concept.

  • @fafamiggy
    @fafamiggy 2 ปีที่แล้ว +1

    You are such a blessing for a beginner like me.

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you so much!

  • @keithwjones
    @keithwjones ปีที่แล้ว

    Thank you. Got it all to work. Is there a video about validation such as making sure fields are not empty and have right content.

  • @desarrollofarmramos5119
    @desarrollofarmramos5119 4 ปีที่แล้ว +1

    Thank's you from Honduras. Your Video Excellent!

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Awesome.. Thank you for commenting and watching.

  • @kahunyokahwai6371
    @kahunyokahwai6371 ปีที่แล้ว +1

    Simply awesome explanation

    • @jherbison
      @jherbison  ปีที่แล้ว

      Thank you for watching and commenting.

  • @faizandarwesh9606
    @faizandarwesh9606 4 ปีที่แล้ว +1

    Excellent tutorial the explanation is pretty good. Don't know why views and subscribers are quite low. May you get these efforts reward soon. Best of luck.

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Thank you... Haha. Yeah, I with the subscribers and views were more too.. I could make more videos. Please share the video / channel with anyone that is wanting to learn.

  • @jayeshsinhrajput5192
    @jayeshsinhrajput5192 4 ปีที่แล้ว +1

    All your videos are unique and helpful thank you...

  • @nazimgaggoo
    @nazimgaggoo 2 ปีที่แล้ว +1

    Bundle of thanks Sir Joshua Herbison.
    its working perfect but i need also little more information to get admin email id as i instal it on any wp site

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting... So there are multiple ways.. 1 is to get_option('admin_email'). This will get the default admin email for the entire site. The second option would be to pull all the users that are admins if you wanted to send to all Admins in the system. The third option would be to create an admin area for the form so that the site owner/admin could update the email address that the form submits to. The first option is probably the best.

  • @kheefagazani8752
    @kheefagazani8752 4 ปีที่แล้ว +1

    Thank you very much for the tutorial, it was great learning with you, well explained. Keep up the work. May God Bless you.

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      Thank you and thank you for the comment. Glad you liked the video.

    • @sebastianmiller9101
      @sebastianmiller9101 3 ปีที่แล้ว

      i dont mean to be offtopic but does any of you know of a method to get back into an instagram account??
      I somehow forgot my account password. I would love any tips you can give me.

  • @SamehAwaden
    @SamehAwaden 3 ปีที่แล้ว +2

    amazing tutorial Joshua, its very very useful....i was using WPforms and some emails were not being sent to me so i had to do it myself using your tutorial.
    i have a question tho......how can i add a background to the form? i want to have like a black background with 50% transparency behind the entire form, is that possible?

    • @jherbison
      @jherbison  3 ปีที่แล้ว +1

      Yes, wrap the form in a div and add a background to the div. Email me at josh@ideapro.com if you have more questions.

    • @nazimgaggoo
      @nazimgaggoo 2 ปีที่แล้ว

      $content .='';
      //past entire form code here and use background color with transparency //
      $content .='';

  • @thomasorta4297
    @thomasorta4297 9 หลายเดือนก่อน

    nice vide, thanks, what about the validation in the front end?

  • @akaraonyestephen5516
    @akaraonyestephen5516 4 ปีที่แล้ว +1

    This is amazing, have been searching for a week now. Can you do a video where you show what happens when a user misses a field ?

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      Great suggestion. I will put that on the list of videos.. So many different ways to validate and empty field. I will show a couple in the video.

  • @Photo-Ninja
    @Photo-Ninja 2 ปีที่แล้ว

    Thank you for this awesome tutorial Joshua! Do you know how to use this form at the backend? I have created a custom dashboard for my customer and just need to add a contact form there. CF7 is not working there because it must use wp_head() same as yours so I thing this will not working as well. So is there any way to submit the form from the backend?
    Many thanks for your time and love your videos, so much knowledge is here :)

  • @joepelow
    @joepelow 4 ปีที่แล้ว +1

    This was super helpful. Thanks!

    • @jherbison
      @jherbison  3 ปีที่แล้ว +1

      Awesome.. Thank you for commenting and watching.

  • @valos123
    @valos123 4 หลายเดือนก่อน

    Very good. Thanx from an OLD Dane

  • @IMorenoI
    @IMorenoI 4 ปีที่แล้ว +1

    Top quality tutorial. Thank you very much.
    I would like to ask you if you can make a video or provide some tips, how to dynamically generate multiple contact forms from a template, using the same "shortcode" with attributes for example. I imagine a form on the backend with several fields that depend on validation by checkboxes (wordpress admin area) to appear. Is it possible to generate several forms and save this data using the same template? How to do this dynamically?

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      I hope you found a solution for this.. If not, can you explain more and I can make a video about it. Trying to catch up on comments that I missed.
      Thank you for watching and commenting.
      If you haven't already, please check out my latest video: A Day In the life of a software engineer. th-cam.com/video/Z8GluDQ2U-E/w-d-xo.html

  • @aldogarciaonline
    @aldogarciaonline 2 ปีที่แล้ว

    Exactly what I wanted, thank you so much

  • @ayebfadia5149
    @ayebfadia5149 2 ปีที่แล้ว

    awesome thank you very much i want to link these information to the database can you help with a video please?

  • @fysher777
    @fysher777 5 ปีที่แล้ว

    Another great video, they are all so helpful. Could you do a part 2 to this video on the second method you described, ie shortcode on the "Thankyou" page.

    • @jherbison
      @jherbison  5 ปีที่แล้ว

      Yes, thank you for the comment.

  • @maheensayeed7862
    @maheensayeed7862 3 ปีที่แล้ว +2

    thanks for the tutorial. i'm wondering how you uploaded the plugin ? did you just click "add new" and upload the php file?

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      I hope you found a solution for this. I use an SFTP program. You can zip the file and upload it the way you are asking. Thank you for watching and commenting.

  • @grfxninja
    @grfxninja 4 ปีที่แล้ว +2

    Really appreciate these vids mate. Do you by chance have any videos relating to setting up the plugin to submit data to the database, then being able to display a list of those database entries?
    Would that be something you would do with custom post types?

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Yes, I will make a video describing that. Thank you for watching and commenting.

    • @lottaollander8108
      @lottaollander8108 2 ปีที่แล้ว +1

      @@jherbison I can't find it. Have you made this video or did something happened? By the way, you are very pedagogical!

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      @@lottaollander8108 Thank you. i have not made the video. I got busy with several large projects but am going to start making time to make more videos.. Thank you for watching and commenting.

    • @lottaollander8108
      @lottaollander8108 2 ปีที่แล้ว +1

      @@jherbison oh what a shame. Looking for info on doing just that. Another thing, I made your plugin post type, everything works except author and sub title, it is reset. The code is exactly like your code. Do you have any ideas what might be wrong? Have been on and troubleshooting for a week now.

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      @@lottaollander8108 Send me an email to josh@ideapro.com and we can discuss there.. Let me know what you are trying to do and I can help you...

  • @jasonetaylor
    @jasonetaylor 2 ปีที่แล้ว

    Great video, thank you!

  • @danny.fortes
    @danny.fortes 5 ปีที่แล้ว +2

    Dude!!! ❤️ the intro :)

  • @fidatok_love_world5451
    @fidatok_love_world5451 2 ปีที่แล้ว +1

    Great SIr!

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting.

  • @tceriksen79
    @tceriksen79 4 ปีที่แล้ว +1

    Hi Joshua. Thanks for your great videos. I followed this video and installed a SMTP plugin to help with the email part, but I am still not receiving the emails I send. When I send an email I'm redirected to my thank you page as I should. I've triple checked the code. The plugin WP Mail SMTP is set to standard settings. Am I doing something wrong? On another note, I couldn't get the 'print_r' thing to show the array with submitted info. Are these two issues related. Best regards and thanks in advance. Looking forward to more valuable videos.

    • @nazimgaggoo
      @nazimgaggoo 2 ปีที่แล้ว +1

      same issue

    • @jherbison
      @jherbison  2 ปีที่แล้ว +1

      I hope you found a solution for this. If not, let me know. Trying to catch up on comments that I missed.
      Thank you for watching and commenting.
      If you haven't already, please check out my latest video: A Day In the life of a software engineer. th-cam.com/video/Z8GluDQ2U-E/w-d-xo.html

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Were you able to find a solution?
      Thank you for watching and commenting.
      If you haven't already, please check out my latest video: A Day In the life of a software engineer. th-cam.com/video/Z8GluDQ2U-E/w-d-xo.html

  • @dewjagai2928
    @dewjagai2928 3 ปีที่แล้ว +1

    you are the real Superman :)

    • @jherbison
      @jherbison  3 ปีที่แล้ว +1

      Thank you for watching and commenting.

  • @sopr1067
    @sopr1067 5 ปีที่แล้ว +1

    Much needed 😍 thanks

    • @jherbison
      @jherbison  5 ปีที่แล้ว +1

      Awesome. Thank you for the comment.

  • @davebuschell6509
    @davebuschell6509 9 หลายเดือนก่อน

    is it possible to cc the submitter? assuming adding a field field for their email address.

  • @Magistrado1914
    @Magistrado1914 3 ปีที่แล้ว +1

    Excellent course
    15/06/2021

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      Thank you for watching and commenting.

  • @Andre73Garcia
    @Andre73Garcia 3 ปีที่แล้ว +1

    Contratulations !!! Very goood !!!!

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting..

  • @ronaldchandakaona4695
    @ronaldchandakaona4695 2 ปีที่แล้ว +1

    Thank you

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting.

  • @kavitharasu3825
    @kavitharasu3825 3 ปีที่แล้ว +1

    Hi Joshua Herbison.
    Thanks for giving this video tutorial...but one doubt
    submit function inside the
    if(isset($_POST[])){
    $name = sanitize_text_field($_POST['your_name']));
    }
    Please explain the sanitize_text_field how to write this name?

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      Sanitize text field is a Wordpress function to clean data. If it is saying it doesn’t exist, your function is running before that function is loaded.

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      It is a Wordpress function. If it worked, you must have had Wordpress core included or it had an error that you don’t see.

    • @kavitharasu3825
      @kavitharasu3825 3 ปีที่แล้ว

      @@jherbison Thanks for your response Sir👍

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      @Bilal Zaheer Awesome!

  • @keithwjones
    @keithwjones ปีที่แล้ว

    Is there a validation script to stop it sending blank emails etc.

  • @extavador5465
    @extavador5465 2 ปีที่แล้ว

    i had a problem when using wp_mail, i tested in the array and the information are sent so everything works fine but when i try to send the captured data i don't receive a mail.

  • @exectivesolutions644
    @exectivesolutions644 3 ปีที่แล้ว +2

    hello sir,
    am working on plugin development, you are a great teacher.
    but sir am getting an error to send an email to my account, I have been written the same code as yours, but I don't receive mail, the code is 100% the same as you.
    sir, please help if you can.
    I'll be thankful to you.

    • @nazimgaggoo
      @nazimgaggoo 2 ปีที่แล้ว

      same issue with me i think we are using local host.
      if you use it on an online website then it will work its my thoughts i am going to test it. you should try

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      I hope you were able to find a solution. I am trying to catch up on comments that I missed.

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting. I hope you both were able to find a solution. If not please let me know.

  • @vivekdhandha3919
    @vivekdhandha3919 4 ปีที่แล้ว +1

    After form submission on thank you page, found an issue on refreshing the page asking "Confirm Form Resubmission" alert to continue or cancel. Do you recommend any suggestion to deal with it in your code?

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      Thank you. I will make a video about this.. I only try to teach the basics to make it as easy to follow as possible and hope everyone can expand on it. I submit to a process page and then redirect the user from there to the thank you page. This eliminates the possibility of someone refreshing the page and sending the submission again, or attempting to send it again.

    • @vivekdhandha3919
      @vivekdhandha3919 4 ปีที่แล้ว

      ​@@jherbison Thank you for your consideration. I understand, the purpose of the video tutorial is to make code as easy as possible. But refreshing thank-you page may lead to fire one more instance unknowingly. Extending this video may resolve this situation and deliver issue free results.

  • @TheJessicagardner
    @TheJessicagardner 3 ปีที่แล้ว +1

    when I did the shortcode it doesnt work and just shows on the page front end this - {contact_form}
    that is so strange... please advise

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Sorry for the delay.. I hope you were able to find a solution or the problem. Thank you for watching and commenting.. Trying to catch up on comments.

  • @pgcadd7983
    @pgcadd7983 4 ปีที่แล้ว +1

    dude !!! the action="";link does not work it they show page not fount what can i do? please reply dude!!!

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Do you have a semi colon after the double quotes like your comment here? If so that is wrong. Also, it isn’t proper html to leave action blank. It should work and submit to the same page but you should have it submit to a different page.

    • @andreagreen1693
      @andreagreen1693 4 ปีที่แล้ว

      ​@@jherbison Hi, I noticed that when you leave the action blank or submit to the same page and then refresh the page (F5) the message is sent again because the refresh doesn't unset the $_POST Object. I added in my code an unset($_POST) after sending the message, but it doesn't work, no chance. I would like to stay on the same page, but I have to make sure somehow that the message isn't sent twice. Do you have any idea how to fix this issue?

  • @pandurangpnaik2701
    @pandurangpnaik2701 4 ปีที่แล้ว +1

    can we use html validation in it?

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Yes, we use HTML validation on everything we do... To keep the videos short and easy, sometimes I may not add some things that are required to pass validation. I will add HTML validation to the list of videos that I have to do.

  • @mel2998
    @mel2998 3 ปีที่แล้ว +1

    Do you need to use plugins to implement a functioning wordpress contact form?

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      No, you can add the details to the theme

  • @pgcadd7983
    @pgcadd7983 4 ปีที่แล้ว +1

    dude i have an smtp connection error how to fix it ... please reply

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Thank you for the comment.. Who is your email service provider?

  • @sukhjindersingh5975
    @sukhjindersingh5975 3 ปีที่แล้ว +1

    Email is not received after submit the form please help to fix this issue

    • @jherbison
      @jherbison  3 ปีที่แล้ว

      Thank you for watching and commenting.. Were you able to figure out the issue? Do you have an SMTP plugin setup on the wordpress install?

  • @ricklove8358
    @ricklove8358 3 ปีที่แล้ว

    how did you install the plugin....i have stuck there

    • @jherbison
      @jherbison  3 ปีที่แล้ว +1

      If you don’t have FTP to the site, you would compress the file using zip and then upload it to the add new plugin.

  • @facemeukom3900
    @facemeukom3900 4 ปีที่แล้ว +1

    James Hetfield giving Wp tutorial Great

    • @jherbison
      @jherbison  4 ปีที่แล้ว

      Haha.. Never been told I look like him. Thank you for watching and the comment.

  • @pandurangpnaik2701
    @pandurangpnaik2701 4 ปีที่แล้ว +1

    i am not getting email plzz help
    i am using in my local machine (localhost)

    • @jherbison
      @jherbison  4 ปีที่แล้ว +2

      Thank you for commenting. Your local machine does not by default have an email server configured. If you are using a local machine, you would need to configure your local WordPress to send through an online SMTP server or use an online API to send email. The script will work, but the email will not go out. I don't recommend configuring an email server on your local machine as all the emails would go to spam anyway.

  • @gkniffen
    @gkniffen 2 ปีที่แล้ว +1

    Good tutorial, but this guy types like there’s butter on the keyboard. 😆

    • @jherbison
      @jherbison  2 ปีที่แล้ว +1

      Not sure what that means, but that is the keyboard from the 2017 MacBook Pro.. Thank you Apple for making a keyboard that was a disaster and really loud!

    • @gkniffen
      @gkniffen 2 ปีที่แล้ว +1

      Ahhh, yes. The keyboard. That's an acceptable excuse. 😁👍

  • @arshpreetkaur3032
    @arshpreetkaur3032 4 ปีที่แล้ว +2

    Hlo sir i am creating plugin in that i am creating form
    And i use $content in it.
    function venveru_forms()
    { global $wpdb;
    $table_name=$wpdb->prefix.'dbp_tb_branch';
    $select_branch = $wpdb->get_results($wpdb->prepare("SELECT * FROM $table_name"));
    $content .=' ';
    $content .='select branch';
    $content .='

    • @jherbison
      @jherbison  4 ปีที่แล้ว +1

      Send the code to me at josh@ideapro.com
      You are opening a PHP tag inside a PHP tag here: $content .='

  • @nailsaggitarius4212
    @nailsaggitarius4212 2 ปีที่แล้ว

    in textarea you got typo.

  • @redbeardjunior
    @redbeardjunior 3 ปีที่แล้ว +1

    if you Build your own template and don't use the new template builder of wordpress simple trick

    • @jherbison
      @jherbison  2 ปีที่แล้ว

      Thank you for watching and commenting.

  • @kadeus
    @kadeus 5 หลายเดือนก่อน

    heheheh use plugin need tutorial ???

  • @sexysurd007
    @sexysurd007 2 ปีที่แล้ว +1

    Hi Josh, amazing video, subscribed to your channel as I am learning Wordpress.. Just wanted to check, how can we filter profanity on this form via a script. I don't want to use any 3rd party plugins.. Thanks.

    • @jherbison
      @jherbison  2 ปีที่แล้ว +1

      Great question. Thanks for watching and commenting... You would need to create an array of terms and then filter any words based on that array. I will make a video about that tomorrow based on this form plugin.

    • @sexysurd007
      @sexysurd007 2 ปีที่แล้ว

      @@jherbison that will be awesome Josh, if you can cover both comments profanity filter and any form submission filter. Thanks much.