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

Sdílet
Vložit
  • čas přidán 5. 09. 2024

Komentáře • 134

  • @jherbison
    @jherbison  Před 4 lety +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 Před 4 lety +1

      WooCommerce :)

    • @jherbison
      @jherbison  Před 4 lety +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 Před 4 lety +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  Před 4 lety +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  Před 4 lety +1

      @@adante407 Thank you for the compliment and comment.

  • @arashjavadi3090
    @arashjavadi3090 Před rokem +1

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

  • @oxblackiexo268
    @oxblackiexo268 Před 3 lety +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  Před 3 lety

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

  • @asht2058
    @asht2058 Před 4 lety +6

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

    • @jherbison
      @jherbison  Před 4 lety +1

      Thank you for the awesome comment.

  • @DharmYogi
    @DharmYogi Před 5 měsíci

    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.

  • @HCoRE8
    @HCoRE8 Před 3 lety +5

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

    • @jherbison
      @jherbison  Před 3 lety +1

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

  • @imalinethmini7719
    @imalinethmini7719 Před rokem +1

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

  • @kahunyokahwai6371
    @kahunyokahwai6371 Před rokem +1

    Simply awesome explanation

    • @jherbison
      @jherbison  Před rokem

      Thank you for watching and commenting.

  • @fafamiggy
    @fafamiggy Před 2 lety +1

    You are such a blessing for a beginner like me.

  • @omidzzz4086
    @omidzzz4086 Před 25 dny

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

    • @jherbison
      @jherbison  Před 22 dny

      Thank you for watching and commenting.

  • @sunilbiyala8470
    @sunilbiyala8470 Před 3 lety +1

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

    • @jherbison
      @jherbison  Před 3 lety

      Awesome. Thank you. Good luck.

  • @jimlanpheer5281
    @jimlanpheer5281 Před rokem

    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.

  • @nazimgaggoo
    @nazimgaggoo Před 2 lety +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  Před 2 lety

      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.

  • @desarrollofarmramos5119
    @desarrollofarmramos5119 Před 4 lety +1

    Thank's you from Honduras. Your Video Excellent!

    • @jherbison
      @jherbison  Před 4 lety

      Awesome.. Thank you for commenting and watching.

  • @claudiacaron2931
    @claudiacaron2931 Před 2 lety +1

    Great video, Josh. Very helpful. Thanks.

    • @jherbison
      @jherbison  Před 2 lety

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

  • @valos123
    @valos123 Před 2 měsíci

    Very good. Thanx from an OLD Dane

  • @jayeshsinhrajput5192
    @jayeshsinhrajput5192 Před 4 lety +1

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

  • @faizandarwesh9606
    @faizandarwesh9606 Před 4 lety +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  Před 4 lety

      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.

  • @akaraonyestephen5516
    @akaraonyestephen5516 Před 4 lety +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  Před 4 lety +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.

  • @fidatok_love_world5451
    @fidatok_love_world5451 Před 2 lety +1

    Great SIr!

    • @jherbison
      @jherbison  Před 2 lety

      Thank you for watching and commenting.

  • @kheefagazani8752
    @kheefagazani8752 Před 4 lety +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  Před 4 lety +1

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

    • @sebastianmiller9101
      @sebastianmiller9101 Před 3 lety

      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.

  • @keithwjones
    @keithwjones Před rokem

    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.

  • @joepelow
    @joepelow Před 3 lety +1

    This was super helpful. Thanks!

    • @jherbison
      @jherbison  Před 3 lety +1

      Awesome.. Thank you for commenting and watching.

  • @ronaldchandakaona4695
    @ronaldchandakaona4695 Před 2 lety +1

    Thank you

    • @jherbison
      @jherbison  Před 2 lety

      Thank you for watching and commenting.

  • @danny.fortes
    @danny.fortes Před 4 lety +2

    Dude!!! ❤️ the intro :)

  • @thomasorta4297
    @thomasorta4297 Před 8 měsíci

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

  • @dewjagai2928
    @dewjagai2928 Před 3 lety +1

    you are the real Superman :)

    • @jherbison
      @jherbison  Před 3 lety +1

      Thank you for watching and commenting.

  • @Magistrado1914
    @Magistrado1914 Před 3 lety +1

    Excellent course
    15/06/2021

    • @jherbison
      @jherbison  Před 3 lety

      Thank you for watching and commenting.

  • @SamehAwaden
    @SamehAwaden Před 2 lety +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  Před 2 lety +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 Před 2 lety

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

  • @aldogarciaonline
    @aldogarciaonline Před 2 lety

    Exactly what I wanted, thank you so much

  • @jasonetaylor
    @jasonetaylor Před 2 lety

    Great video, thank you!

  • @Andre73Garcia
    @Andre73Garcia Před 3 lety +1

    Contratulations !!! Very goood !!!!

    • @jherbison
      @jherbison  Před 2 lety

      Thank you for watching and commenting..

  • @ayebfadia5149
    @ayebfadia5149 Před 2 lety

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

  • @fysher777
    @fysher777 Před 4 lety

    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  Před 4 lety

      Yes, thank you for the comment.

  • @sopr1067
    @sopr1067 Před 4 lety +1

    Much needed 😍 thanks

    • @jherbison
      @jherbison  Před 4 lety +1

      Awesome. Thank you for the comment.

  • @IMorenoI
    @IMorenoI Před 3 lety +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  Před 2 lety

      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. czcams.com/video/Z8GluDQ2U-E/video.html

  • @grfxninja
    @grfxninja Před 4 lety +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  Před 4 lety

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

    • @lottaollander8108
      @lottaollander8108 Před 2 lety +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  Před 2 lety

      @@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 Před 2 lety +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  Před 2 lety

      @@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...

  • @maheensayeed7862
    @maheensayeed7862 Před 3 lety +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  Před 2 lety

      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.

  • @maximusDMR
    @maximusDMR Před rokem

    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 :)

  • @sexysurd007
    @sexysurd007 Před 2 lety +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  Před 2 lety +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 Před 2 lety

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

  • @exectivesolutions644
    @exectivesolutions644 Před 3 lety +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 Před 2 lety

      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  Před 2 lety

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

    • @jherbison
      @jherbison  Před 2 lety

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

  • @extavador5465
    @extavador5465 Před 2 lety

    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.

  • @davebuschell6509
    @davebuschell6509 Před 7 měsíci

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

  • @keithwjones
    @keithwjones Před rokem

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

  • @tceriksen79
    @tceriksen79 Před 3 lety +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 Před 2 lety +1

      same issue

    • @jherbison
      @jherbison  Před 2 lety +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. czcams.com/video/Z8GluDQ2U-E/video.html

    • @jherbison
      @jherbison  Před 2 lety

      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. czcams.com/video/Z8GluDQ2U-E/video.html

  • @TheJessicagardner
    @TheJessicagardner Před 3 lety +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  Před 2 lety

      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.

  • @kavitharasu3825
    @kavitharasu3825 Před 3 lety +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  Před 3 lety

      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  Před 2 lety

      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 Před 2 lety

      @@jherbison Thanks for your response Sir👍

    • @jherbison
      @jherbison  Před 2 lety

      @Bilal Zaheer Awesome!

  • @sukhjindersingh5975
    @sukhjindersingh5975 Před 3 lety +1

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

    • @jherbison
      @jherbison  Před 3 lety

      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?

  • @vivekdhandha3919
    @vivekdhandha3919 Před 4 lety +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  Před 4 lety +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 Před 4 lety

      ​@@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.

  • @mel2998
    @mel2998 Před 3 lety +1

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

    • @jherbison
      @jherbison  Před 3 lety

      No, you can add the details to the theme

  • @facemeukom3900
    @facemeukom3900 Před 4 lety +1

    James Hetfield giving Wp tutorial Great

    • @jherbison
      @jherbison  Před 4 lety

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

  • @pgcadd7983
    @pgcadd7983 Před 4 lety +1

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

    • @jherbison
      @jherbison  Před 4 lety

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

  • @pgcadd7983
    @pgcadd7983 Před 4 lety +1

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

    • @jherbison
      @jherbison  Před 4 lety

      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 Před 4 lety

      ​@@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?

  • @ricklove8358
    @ricklove8358 Před 2 lety

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

    • @jherbison
      @jherbison  Před 2 lety +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.

  • @nailsaggitarius4212
    @nailsaggitarius4212 Před 2 lety

    in textarea you got typo.

  • @pandurangpnaik2701
    @pandurangpnaik2701 Před 4 lety +1

    can we use html validation in it?

    • @jherbison
      @jherbison  Před 4 lety

      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.

  • @pandurangpnaik2701
    @pandurangpnaik2701 Před 4 lety +1

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

    • @jherbison
      @jherbison  Před 4 lety +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.

  • @arshpreetkaur3032
    @arshpreetkaur3032 Před 4 lety +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  Před 4 lety +1

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

  • @redbeardjunior
    @redbeardjunior Před 3 lety +1

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

    • @jherbison
      @jherbison  Před 2 lety

      Thank you for watching and commenting.

  • @gkniffen
    @gkniffen Před 2 lety +1

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

    • @jherbison
      @jherbison  Před 2 lety +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 Před 2 lety +1

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

  • @kadeus
    @kadeus Před 3 měsíci

    heheheh use plugin need tutorial ???