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

  Рет қаралды 25,865

Joshua Herbison

Joshua Herbison

Күн бұрын

Пікірлер: 134
@arash11javadi
@arash11javadi Жыл бұрын
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 жыл бұрын
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 жыл бұрын
WooCommerce :)
@jherbison
@jherbison 5 жыл бұрын
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 5 жыл бұрын
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 5 жыл бұрын
@@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 5 жыл бұрын
@@adante407 Thank you for the compliment and comment.
@oxblackiexo268
@oxblackiexo268 4 жыл бұрын
Hello Joshua, I wanted to say few words and i hope you don't mind me saying it. . . . . . . . . . . You are a LEGEND !!!!.
@jherbison
@jherbison 4 жыл бұрын
Awesome! Thank you for the compliment, thank you for watching and commenting.
@imalinethmini7719
@imalinethmini7719 Жыл бұрын
the first time I created a plugin . thank you very much.
@jherbison
@jherbison Жыл бұрын
That’s awesome. Congrats
@asht2058
@asht2058 4 жыл бұрын
Love how you break down the process that even a newbie can follow. Subscribed your channel for more 🙂
@jherbison
@jherbison 4 жыл бұрын
Thank you for the awesome comment.
@HCoRE8
@HCoRE8 4 жыл бұрын
Can you please do more tutorials for Wordpress like these? It's very helpful, thank you.
@jherbison
@jherbison 4 жыл бұрын
Thank you for watching and commenting.. Yes, I have plans to do some more just after the holidays!
@omidzzz4086
@omidzzz4086 4 ай бұрын
Goin over the playlist. Really nice and helpful Josh :] thanks man
@jherbison
@jherbison 4 ай бұрын
Thank you for watching and commenting.
@fafamiggy
@fafamiggy 2 жыл бұрын
You are such a blessing for a beginner like me.
@jherbison
@jherbison 2 жыл бұрын
Thank you so much!
@keithwjones
@keithwjones 2 жыл бұрын
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.
@DharmYogi
@DharmYogi 9 ай бұрын
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.
@kahunyokahwai6371
@kahunyokahwai6371 Жыл бұрын
Simply awesome explanation
@jherbison
@jherbison Жыл бұрын
Thank you for watching and commenting.
@nazimgaggoo
@nazimgaggoo 2 жыл бұрын
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.
@sunilbiyala8470
@sunilbiyala8470 3 жыл бұрын
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 жыл бұрын
Great video, Josh. Very helpful. Thanks.
@jherbison
@jherbison 2 жыл бұрын
You’re welcome. Thank you for watching and commenting.
@thomasorta4297
@thomasorta4297 11 ай бұрын
nice vide, thanks, what about the validation in the front end?
@jimlanpheer5281
@jimlanpheer5281 2 жыл бұрын
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.
@jayeshsinhrajput5192
@jayeshsinhrajput5192 4 жыл бұрын
All your videos are unique and helpful thank you...
@jherbison
@jherbison 4 жыл бұрын
Thank you!
@desarrollofarmramos5119
@desarrollofarmramos5119 4 жыл бұрын
Thank's you from Honduras. Your Video Excellent!
@jherbison
@jherbison 4 жыл бұрын
Awesome.. Thank you for commenting and watching.
@ayebfadia5149
@ayebfadia5149 2 жыл бұрын
awesome thank you very much i want to link these information to the database can you help with a video please?
@faizandarwesh9606
@faizandarwesh9606 4 жыл бұрын
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.
@SamehAwaden
@SamehAwaden 3 жыл бұрын
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 жыл бұрын
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 .='';
@kheefagazani8752
@kheefagazani8752 4 жыл бұрын
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 жыл бұрын
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.
@akaraonyestephen5516
@akaraonyestephen5516 4 жыл бұрын
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 жыл бұрын
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.
@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.
@valos123
@valos123 6 ай бұрын
Very good. Thanx from an OLD Dane
@maheensayeed7862
@maheensayeed7862 3 жыл бұрын
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.
@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 жыл бұрын
This was super helpful. Thanks!
@jherbison
@jherbison 4 жыл бұрын
Awesome.. Thank you for commenting and watching.
@IMorenoI
@IMorenoI 4 жыл бұрын
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. kzbin.info/www/bejne/kGmqnah6hpeIY6c
@grfxninja
@grfxninja 4 жыл бұрын
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 3 жыл бұрын
@@jherbison I can't find it. Have you made this video or did something happened? By the way, you are very pedagogical!
@jherbison
@jherbison 3 жыл бұрын
@@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 3 жыл бұрын
@@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 3 жыл бұрын
@@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...
@davebuschell6509
@davebuschell6509 11 ай бұрын
is it possible to cc the submitter? assuming adding a field field for their email address.
@kavitharasu3825
@kavitharasu3825 3 жыл бұрын
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!
@tceriksen79
@tceriksen79 4 жыл бұрын
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 жыл бұрын
same issue
@jherbison
@jherbison 2 жыл бұрын
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. kzbin.info/www/bejne/kGmqnah6hpeIY6c
@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. kzbin.info/www/bejne/kGmqnah6hpeIY6c
@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.
@jasonetaylor
@jasonetaylor 2 жыл бұрын
Great video, thank you!
@keithwjones
@keithwjones 2 жыл бұрын
Is there a validation script to stop it sending blank emails etc.
@aldogarciaonline
@aldogarciaonline 2 жыл бұрын
Exactly what I wanted, thank you so much
@TheJessicagardner
@TheJessicagardner 3 жыл бұрын
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.
@danny.fortes
@danny.fortes 5 жыл бұрын
Dude!!! ❤️ the intro :)
@jherbison
@jherbison 5 жыл бұрын
Thank you.
@dewjagai2928
@dewjagai2928 3 жыл бұрын
you are the real Superman :)
@jherbison
@jherbison 3 жыл бұрын
Thank you for watching and commenting.
@vivekdhandha3919
@vivekdhandha3919 4 жыл бұрын
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 жыл бұрын
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.
@fidatok_love_world5451
@fidatok_love_world5451 3 жыл бұрын
Great SIr!
@jherbison
@jherbison 3 жыл бұрын
Thank you for watching and commenting.
@sopr1067
@sopr1067 5 жыл бұрын
Much needed 😍 thanks
@jherbison
@jherbison 5 жыл бұрын
Awesome. Thank you for the comment.
@exectivesolutions644
@exectivesolutions644 3 жыл бұрын
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.
@Magistrado1914
@Magistrado1914 3 жыл бұрын
Excellent course 15/06/2021
@jherbison
@jherbison 3 жыл бұрын
Thank you for watching and commenting.
@pgcadd7983
@pgcadd7983 4 жыл бұрын
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?
@Andre73Garcia
@Andre73Garcia 3 жыл бұрын
Contratulations !!! Very goood !!!!
@jherbison
@jherbison 2 жыл бұрын
Thank you for watching and commenting..
@sukhjindersingh5975
@sukhjindersingh5975 3 жыл бұрын
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?
@mel2998
@mel2998 3 жыл бұрын
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 жыл бұрын
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?
@ronaldchandakaona4695
@ronaldchandakaona4695 2 жыл бұрын
Thank you
@jherbison
@jherbison 2 жыл бұрын
Thank you for watching and commenting.
@ricklove8358
@ricklove8358 3 жыл бұрын
how did you install the plugin....i have stuck there
@jherbison
@jherbison 3 жыл бұрын
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.
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
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.
@pandurangpnaik2701
@pandurangpnaik2701 4 жыл бұрын
i am not getting email plzz help i am using in my local machine (localhost)
@jherbison
@jherbison 4 жыл бұрын
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 4 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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.
@facemeukom3900
@facemeukom3900 4 жыл бұрын
James Hetfield giving Wp tutorial Great
@jherbison
@jherbison 4 жыл бұрын
Haha.. Never been told I look like him. Thank you for watching and the comment.
@gkniffen
@gkniffen 2 жыл бұрын
Good tutorial, but this guy types like there’s butter on the keyboard. 😆
@jherbison
@jherbison 2 жыл бұрын
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 жыл бұрын
Ahhh, yes. The keyboard. That's an acceptable excuse. 😁👍
@kadeus
@kadeus 7 ай бұрын
heheheh use plugin need tutorial ???
Create a Form Plugin that submits to a process page with redirect
36:55
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 505 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 49 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 694 М.
Create Admin Menu Item in WordPress - add_menu_page WordPress Function
14:48
How To Create A Contact Form In WordPress 2024 🔥 - (FAST & Easy!)
8:49
WP Cupid Blog - WordPress Tutorials
Рет қаралды 436
WordPress Email Template - Create Your Own Email Template
19:51
Joshua Herbison
Рет қаралды 13 М.
Form Submit Using Ajax - WordPress Form Ajax
1:09:25
Joshua Herbison
Рет қаралды 19 М.
Building a WordPress plugin from scratch, including extensible features
43:39
What's The Difference Between Bracketing And HDR?
9:59
Rick McEvoy Photography
Рет қаралды 6 М.
I Asked ChatGPT To Write A WordPress Plugin…
11:32
WP Maker
Рет қаралды 199 М.
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН