WordPress REST API Tutorial (Real Examples)

Поділитися
Вставка
  • Опубліковано 14 гру 2016
  • Let's learn about the REST API built into WordPress! Join my full courses: learnwebcode.teachable.com/p/...
    Let's learn about the new WordPress REST API.
    Link to my website: learnwebcode.com/
    Starter AJAX Code: codepen.io/anon/pen/ObBQqv?edi...
    Starter Form HTML & CSS: codepen.io/anon/pen/jVQPLz?edi...
    Link to download zip of finished theme files: learnwebcode.com/wordpress-res...
    Follow me for cat pics:
    Twitter: / learnwebcode
    Facebook: / brad-schiff-1542576316...

КОМЕНТАРІ • 381

  • @chaninthisone6950
    @chaninthisone6950 7 років тому

    You have a gift. I've been designing for about 5 years but recently started leaerning the JS stuff and I read lots of tutorials and also watch lots of videos but your videos stand out. You provide just the right amount of information and explain things in a very clear succinct way but are very thorough. Hard to explain, please keep it up.

  • @JoSh-yu6jt
    @JoSh-yu6jt 5 років тому

    You Mr. have an outstanding way of teaching. I'm merely repeating what others have said already, but it can't be said often enough. Extremely comprehensive and perfect pace. Huge thumbs up for your work here. I only dropped by because I was curious what you had to say about Rest API, but I got hooked onto your teaching style and I almost watched this video like a movie.
    Outstanding work Sir! Will visit again for sure.

  • @DekuOutlaw
    @DekuOutlaw 7 років тому

    I found your channel by searching for Sublime Text tutorials and I'm so happy that I did. Thank you for sharing your knowledge with us and I look forward to all your future videos.

  • @noface2178
    @noface2178 6 років тому

    This completely blew my mind! I've been using WordPress for a while and this tutorial makes so much sense as I've just covered AJAX and PHP at University, thank you so much :)

  • @ArthurKlisiewicz
    @ArthurKlisiewicz 7 років тому +2

    I work 30 yrs in IT, so far mostly networking but now switching more to development. I really like your style! Everything is really clear, it has its tempo but it's not to fast. Keep doing great work. Thank you

  • @78juli
    @78juli 7 років тому +4

    You're seriously one of the best teachers out there for web development and wordpress. You've got a pleasant way of talking, everything is clear and explained in an uncomplicated way so things seem really easy to do! Thanks for all the work you've put into this!

  • @karlozm
    @karlozm 6 років тому

    I think that this is no one of the best ever tutorials of wordpress i've seen... this is THE ONE AND ONLY best ever tutorial about Wordpress Theme Development on UA-cam and i dare to say that on the internet, Incredible work, congratulations you are an excellent teacher!

  • @mirkocaccia3846
    @mirkocaccia3846 5 років тому

    Maybe thi is the greatest tutorial I ever seen!
    Technically perfect, clear and very useful
    .
    Also your way of speaking is incredibly understandable for my level of English (I'm italian). 5 stars for you!!

  • @derickvanzyl9179
    @derickvanzyl9179 7 років тому +76

    You are by far the best teacher that I have come across in my life. I can't get enough of your tutorials. Been watching for 12 hours non-stop

    • @LearnWebCode
      @LearnWebCode  7 років тому +11

      That sounds like the "eating your vegetables" version of binge-watching Netflix. Haha, but seriously, thanks for the kind words; glad you enjoy the videos!

    • @redlense4
      @redlense4 4 роки тому

      I agree. This is about as clear and concise as a tutorial can be. Just wonderful.

  • @unityvirtualproduction
    @unityvirtualproduction Рік тому

    Clear and to the point! Enjoyable and stress free learning resource. Easy to understand; no need to "decode the teacher's communication style to access the information". Good Teaching Speed. Love it.

  • @edmurraylife
    @edmurraylife 4 роки тому

    Yo Brad. I came here to get a head start on one of your modules in the Udemy become a Wordpress Developer course on Udemy. I have to say you are one of my favorite instructors so far. Your style of teaching really resonates with me and has been extremely helpful. I purchased a couple more of your courses and am very grateful to you for all of your instruction.

  • @alfredmarshall3390
    @alfredmarshall3390 3 роки тому

    No words to praise this guy..Best tutor i have seen so far...always clears my all doubts ..just by saying why???❣❣❣❣❣❣lots of love

  • @alireza2470
    @alireza2470 6 років тому

    Dude you are an amazing teacher. This video was the only source that I could understand for REST api programming.Thank you!

  • @elcondorito8823
    @elcondorito8823 Рік тому +1

    When I started playing this video I recognized your voice. I watched the Udemy advanced WP tutorial earlier. Best wordpress tutorial out there.
    I did not know you had a YT channel. Subscribed !

  • @lynguist
    @lynguist 4 роки тому

    hahaha, the snack break - nice touch! and you are seriously one of the top tutors on yt! your effortles transmission of knowledge shows how well you understood the topic at hand! very impressive! thank you!

  • @otorishingen8600
    @otorishingen8600 6 років тому

    love youre teaching style, perfect speed, transparent, perfect metainfo 👍- got a new subscriber here

  • @jaybien6472
    @jaybien6472 6 років тому +1

    You my friend, are a mensch.
    Saved my life with this tut. Thank you.

  • @Oxygen.O2
    @Oxygen.O2 5 років тому

    The quality of your content blows my mind... Thanks!

  • @partyushkumar4014
    @partyushkumar4014 4 роки тому

    THE BEST TEACHER ON YOU TUBE KEEP GOING BLESSINGS WITH YOU I AM BEGINNER IN THIS BUT STILL YOUR CONTENT IS SO CRYSTAL CLEAR THANK YOU FOR YOUR EFFORTS

  • @jameswalsh8176
    @jameswalsh8176 4 роки тому +1

    Your truly a gift my friend. I have several different learning disabilities and you teach and explain things so well I have only had to watch your videos 1 time... when I normally have to watch dozens of times from other instructors. Please let me know where you are actively teaching please!

  • @bawagrafix
    @bawagrafix 7 років тому

    perfect explaining the rest API concept without meshing up JSON or AJAX, fortunately I am well aware of JSON and AJAX so this video was nice grasp for me. Thanks for posting this wonderful tutorial

  • @mikeginter
    @mikeginter 6 років тому

    I had been on Lynda.com taking lessons, but this series of tutorials was more informative, and covered the general WP architecture better than anything I have found so far! WordPress documentation SUCKS, although it is still a good reference. I think they don't really care about expanding their user base too much. You have been a godsend. Thank You, thank you, thank you!!

  • @NdmGjr
    @NdmGjr 4 роки тому

    I liked your cat and loved these tutorials looking forward to watching about customizing themes and creating child themes from you. Thanks

  • @luyuan0
    @luyuan0 7 років тому

    Snack break lol I've been learning basics of web development in the past year and your videos made most of my 'aha' moments - thank you!

  • @clever8963
    @clever8963 4 роки тому

    Best Teacher on Earth in Web development

  • @faisalchishti2798
    @faisalchishti2798 3 роки тому +11

    I know this has been on UA-cam for a while, but I have just started learning Wordpress development, and this is by far the best learning material I have come across. The way you have covered not only the Wordpress part but also all the Javascript and related concepts, one could not ask for any better. Thank you so much for getting this across!!!

    • @rellison68
      @rellison68 3 роки тому +1

      I agree with you. His teaching style is some of the best. There are newer and better ways of makeing the ajax calls nowa days. Brad Traversy has a really good course on modern Javascript. His teaching style is a lot like this guy.

    • @disrael2101
      @disrael2101 2 роки тому

      Is this tutorial still relevant in 2022 in your opinion?

  • @onin816
    @onin816 Рік тому

    You made Wordpress API learning easier. Much thanks!

  • @ankitkaushikx
    @ankitkaushikx 4 місяці тому

    i learn from your wordrpess course on udemy. that was really really to the point clear and practical , Thank you so much now i am a Wordpress developer and building big projects and started my career . Thank you once again . Love from India.

  • @kamalhines
    @kamalhines 7 років тому

    This is what i am talking about right here...Can't wait for your upcoming wordpress series.

  • @perfectdeveloper7663
    @perfectdeveloper7663 7 років тому

    The best tutor out there in my opinion. The style of teaching is the just brilliant. Keep it up. Also if you can please make course about websockets and regular expressions it will be awesome as I always have problem understanding that. Thanks for this though.

  • @sharkeyboy123
    @sharkeyboy123 6 років тому

    FANTASTIC VIDEO - nicely explained, great vocal tone and delivery tempo.

  • @slaction
    @slaction 5 років тому

    You have a way of going through things that makes it super easy to understand! Love your videos, subbed.

  • @webmaster246
    @webmaster246 5 років тому

    Already purchase course on Udemy! Incredible Tutor. Did enjoy listening to Mr. Brad's voice timbre as well. Keep it up. Love it!

  • @gibsonsvideo
    @gibsonsvideo 2 дні тому

    Dear Brad,
    I just wanted to take a moment to express my sincere appreciation for this incredible UA-cam video. Your insights and expertise were truly inspiring and incredibly helpful.
    Thank you for the effort and passion you put into creating such high-quality content.
    Keep up the fantastic work! I look forward to seeing more of your videos in the future.
    Best regards,
    Will

    • @LearnWebCode
      @LearnWebCode  2 дні тому

      Thank you very much Will, your comment made my Saturday 🙏

  • @babajibindas
    @babajibindas 3 роки тому

    Thanks sir, this tutorial is very useful indeed. I am from India I found many videos but really I understood through your videos.
    Thanks again.

  • @nareshpal9450
    @nareshpal9450 7 років тому +5

    Sir the entire series is owesome....
    please make a video on comment management on output of single.php............ if possible

  • @glennferrell2902
    @glennferrell2902 Рік тому

    One of the best tutorials I've ever seen on You Tube!

  • @alexthewebdesigner1856
    @alexthewebdesigner1856 5 років тому

    You are very well spoken and to the point. I am learning a lot with your videos. than you very much Sir!

  • @kradfulpride
    @kradfulpride 6 років тому +1

    I Literally search go to your channel first whenever i have a hard time understanding some topics about some coding fields.

  • @Zo91709
    @Zo91709 5 років тому

    I really like the way you presented this! Im an iOS developer, but wanting to use the WordPress REST API to communicate between my app and wordpress site. Just wanted to take some time to say thanks !

  • @melindamel4036
    @melindamel4036 7 років тому

    Okay that's a great tutorial for someone newbie like me. Clear and easy to understand.

  • @zeeita
    @zeeita 6 років тому

    You are a wonderful teacher. You are truly gifted. Thank you for sharing your knowledge 🙏

  • @C4profesional
    @C4profesional 7 років тому +1

    I'm really looking forward to the wordpress course for developers. I hope it's done soon! :)

  • @alexthewebdesigner1856
    @alexthewebdesigner1856 7 років тому

    I love your teaching style. Perfect!!! Thanx for posting these vids!

  • @oimpiedoso
    @oimpiedoso 5 років тому

    Dude, thanks for the video. Your teaching is perfect, my sincere congratulations!

  • @KrakeNjp2y
    @KrakeNjp2y 7 років тому

    finally finished with this series.
    thank you!

  • @JeremySeiner
    @JeremySeiner 4 роки тому +2

    This video was so useful for what I’m developing right now. Thank you so much!

  • @chrsbll
    @chrsbll 7 років тому

    This is the first video of yours I've seen. Consider me subscribed!

  • @nayoonchoi9187
    @nayoonchoi9187 5 років тому

    Thanks a lot!! your lecture is really helpful. And the cat comes out at the early video is so cut^^

  • @danmusiceasy
    @danmusiceasy 3 роки тому

    Great tutorial! I tried to learn AJAX a while ago and it's one of the few things that I had to give up on because I couldn't figure it out, but thanks to your video now I managed to make it work.
    Question - if I want to update post contents, do I need to learn how to generate another nonce? This "nonce" security thing, I didn't quite understand it, I'm just glad it works the way you showed it.

  • @husainahmmed9025
    @husainahmmed9025 7 років тому +10

    Thanks for this awesome tutorial

  • @vishalranjan3325
    @vishalranjan3325 7 років тому +51

    Hello.
    Do you know how special this video series is for me. Before watching this course, I was not interested in coding. I just used to download free WordPress themes and use them.
    But one day, I was just searhing on UA-cam to know, how a theme is created.
    And I found this video series. I really loved the way you explained everything.
    And after wathing this series, i decided to learn more. I am learning and creating WordPress themes from about 2 years now.
    And now. I am going to start my online business. I am going to sell Premium themes and plugins online.
    Thanks you very much.

  • @AndrewKwabula
    @AndrewKwabula 8 місяців тому

    Brad, I suspect the Head Coder at LearWebCode is not you but Professor Meow (I am enrolled in your WordPress and Laravel courses). Seriously, you are a world-class technology teacher.

  • @sushilshrestha9726
    @sushilshrestha9726 6 років тому

    Amazing Tutorial...Very easily explained that even beginner could understand ..Thanks a lot and Keep it Up :)

  • @bluesoda025
    @bluesoda025 6 років тому

    This was extremely helpful, thank you! Clear tutorials on WP REST API are still scarce.

  • @kendincebirnefer
    @kendincebirnefer 3 роки тому +1

    It's also for me and for those who need it, to get to the related point quickly:
    18:56 - How to write the GET method
    22:51 - How to show data from GET in html
    25:21 - Tutorial beginning for the POST method - this have to take care
    I may expand my comment the further I watch the video.

  • @lokesh_kapoor
    @lokesh_kapoor 4 роки тому

    amazing video. Sound is crystal clear

  • @maclacrosse1
    @maclacrosse1 6 років тому

    For anyone having trouble loading in initial javascript console.log message in the wp_enqueue_script function, try leaving out the version number aka the 1.0. This fixed my problem and the "Hello from main.js" printed to the console.

  • @357molotov
    @357molotov 7 років тому +1

    I really like your videos, they have helped me out a lot. Can you do a video on how to make custom meta boxes for the admin post/page editor pages?

  • @igorlukov387
    @igorlukov387 7 років тому

    men you rock!!!
    Best and first wordpress rest API tutorial

  • @louismadrigal5972
    @louismadrigal5972 6 років тому

    thank you so much, its very clear and easy to follow your tutorials, ill gonna check out your latest tutorials.

  • @memonustad
    @memonustad 5 років тому +1

    Amazing teacher. Learned from you a lot. I have a request to make can you teach us about headless CMS using React as a front end and Wordpress as CMS?

  • @DavidRajM
    @DavidRajM 5 років тому

    This is an amazing video on wordpress rest api for sure!. Expecting a tutorial on contact forms using wordpress rest api.

  • @acidfather
    @acidfather 5 років тому

    I have learned so much with this tutorial. Thank you.

  • @leerdoor
    @leerdoor 7 років тому

    Very skilled and entertaining teacher!

  • @eArmin
    @eArmin 5 років тому

    That was an absolutely great tutorial, and also the way you were coding! Thank you so much.
    I have just a question about the Update posts action and actually, I want to know how can I check if the post is duplicate or not?

  • @georgezecheru256
    @georgezecheru256 3 роки тому

    Excellent tutorial! Thank you for the great, easy to follow tutorial.

  • @WiLL-by5sw
    @WiLL-by5sw 7 років тому

    Impressive tutorial Brad! Thanks !

  • @cs-study-ua
    @cs-study-ua Рік тому

    Thanks, man.
    That's the video I've looked for

  • @DanielCalbimonte
    @DanielCalbimonte 5 років тому

    Best REST API video ever found!

  • @MoultonRock
    @MoultonRock 7 років тому

    thanks, that's one of the best tutorials I've watched!

  • @mllr_nyc
    @mllr_nyc 6 років тому

    @LearnWebCode
    This is a fantastic video, thank you! How would one go about using the ACF gallery in this case?

  • @matthewtetley7048
    @matthewtetley7048 7 років тому

    I am just learning what PHP and JavaScript can do, so this is great

  • @blueorca9
    @blueorca9 6 років тому

    Hi Brad, thanks for the brilliant video! Just wondering if we can use Promise to get the JSON data instead?

  • @payo123ful
    @payo123ful 5 років тому

    Loved the video. Keep up the great work fam!

  • @sassoleo
    @sassoleo 5 років тому

    Crystal clear tutorial. How would you get 3 random posts from a given category?

  • @mustafasabir12
    @mustafasabir12 3 роки тому

    Please note for TASK 2, as of version 4.5 in wordpress, the standard method to pass data from a php file to js has changed from using the `wp_localize_script()` to using the `wp_add_inline_script()` function. Infact wordpress doc recommends : `wp_localize_script()` should only be used when you actually want to localize strings.

  • @LanceMcGrew
    @LanceMcGrew 7 років тому +5

    Amazing clarity in your teaching skills. Thank you for your contribution. I am interested in what text editor you are using in this video?

    • @betts12220
      @betts12220 7 років тому

      He's using Sublime Text with the El Capitan theme.

  • @VenkateshMps
    @VenkateshMps 7 років тому

    Hi,
    kindly help me, how to get the all post from the json , it shows only certain recent update posts.

  • @AdityaWirahaHadiS
    @AdityaWirahaHadiS 6 років тому

    Brad, thankyou so much man, u explain so clear, thank you so much i appreciate it

  • @danysinchro
    @danysinchro 7 років тому

    Amazing video. You make the things seens so easy!

  • @Helpfolder
    @Helpfolder 7 років тому

    Thank you for this. REST API is something I am trying to learn too :)

  • @pandurangpnaik2701
    @pandurangpnaik2701 4 роки тому

    i wanted to show my posts from wordpress to my android application using json so can i do it in this way or please suggest any video for it

  • @rominaaliotta5180
    @rominaaliotta5180 6 років тому

    hello !! thanks so much for this video, is AWESOME!! it helps me a lot! I just have one question, is it possible to use a site created in the node environment transfer to Wordpress? do you know video o pages that show how to do it ? thanks so much

  • @tininottiny8685
    @tininottiny8685 6 років тому

    how would i extract or parse the returned objects' content property into plaintext for display, I see you used the x.content.rendered here but the current api response doesnt contain it

  • @lionelgibaudan3592
    @lionelgibaudan3592 7 років тому

    Great tutoriel, concise and clearly explained.

  • @Mahmoudgamal-2010
    @Mahmoudgamal-2010 6 років тому

    can i buy my theme that based on angular and node without php in theme forest as wordpress theme using (rest api) or they accept themes based on php only??

  • @sproutdigital4120
    @sproutdigital4120 7 років тому

    Hey I am working on a project and need to pull in two different elements of content. One is a photo and one is text.
    How do I write the javascript code to pull both elements in? I also want the user to be able to click the button to return to the original view.
    Can you help me with this?

  • @IsaacAsante17
    @IsaacAsante17 6 років тому

    Simply amazing video. Superb insight from an expert teacher.

  • @tehseenullah215
    @tehseenullah215 3 роки тому

    sir i have a scenario i want to make post (having image upload) from my mobile app and post should only be published when admin approve it. is this possible if yes kindly guide me thanks.

  • @rick7242
    @rick7242 5 років тому

    Thanks man, amazing video, I finally get this API work XD.

  • @bryandelacruz9066
    @bryandelacruz9066 5 років тому

    Hi i have a question, are you editing your wordpress php files online on a server? how do you add a js folder and a file? thanks

  • @bikerflyer563
    @bikerflyer563 3 роки тому

    How did you create the page-portfolio.php? I cant find anything like that in my files. I want to create the empty div and thn create a custom javascript file, but how do you create or find the page.php that you create the empty div in?

  • @sain6351
    @sain6351 2 роки тому

    Greatly awesome. Well explained. Easy to follow. A Great teacher! By the way which editor (IDE) are you using to code?

  • @greatblakes
    @greatblakes 5 років тому

    Thanks, Ron Howard. This was helpful.

  • @JuanMoisesTorrijos
    @JuanMoisesTorrijos 6 років тому

    Wow! This video is banging! Thank you very much! Love it!

  • @johnh5367
    @johnh5367 7 років тому

    Man, i know very little about json, ajax, and js, but this i could follow and learn how to tinker with (with additional study of course).

  • @Curb72
    @Curb72 4 роки тому

    Thanks a lot for great learning and useful tutorial. I did make it work! Also bought your udemy course... Good work!

  • @antoninodanselmo7212
    @antoninodanselmo7212 5 років тому

    great tutorials!!! But what if the ajax has to work with woocommerce? I need to send wc data and receive them...do you have something that could help with thata? thanks!

  • @guidovndr
    @guidovndr 2 роки тому

    any idea where we should put the function inside a pre-built template of WP?