Getting Started with Headless WordPress with NEXTJS & WPGRAPHQL

Поділитися
Вставка
  • Опубліковано 23 бер 2021
  • In this video, we go over how to get up and running with #NextJS in a Headless #WordPress setup.
    Code: github.com/alexander-young/wp...
    My favorite caching plugin - WPRocket: wpcasts.tv/go/wprocket
    💖 Become a Patron to show support & get perks!
    / wpcasts
    Sign up for the newsletter. Free course coming soon:
    wpcasts.tv
    *SOCIAL*
    Twitter: / alexanderbyoung
    Facebook: / wpcasts.tv
  • Наука та технологія

КОМЕНТАРІ • 81

  • @WPCasts
    @WPCasts  3 роки тому +39

    I hope you learned something! Let me know if you’d like me to continue going over NextJS and WordPress together!

    • @MrJfergs
      @MrJfergs 3 роки тому +2

      I would be very interested in watching those videos as well.

    • @vikashdenzil
      @vikashdenzil 3 роки тому +3

      Yes please

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

      great! more!!

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

      Yes please keep on going over NextJS and Wordpress. Quality content :) 👍

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

      Yes, this is great!

  • @abdulrafay1951
    @abdulrafay1951 3 роки тому +12

    yes please, dynamic content and comment feature

  • @haffystube
    @haffystube 3 роки тому +8

    Love the shortness and how you describe it. Would love to see more from you regarding Next JS and Headless, maby even a video about how to deploy to a basic server.

  • @kellenmace
    @kellenmace 3 роки тому +4

    Excellent intro into headless WP + Next.js! 💥🙌🏼

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

    The initial energy for the WordPress + Next.js path. Thank you very much.

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

    I've tried about 10 or so Next tutorials and yours was by the easiest for a novice like me to follow. THANK YOU.

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

    This is great. Please, keep bringing videos about more advanced Headless WordPress with NEXTJS & WPGRAPHQL

  • @itai0800
    @itai0800 3 роки тому +5

    Hey ! This is one of my favorite channel’s regarding Wordpress development, but all of your videos are Pretty short and I can’t build real projects from scratch.
    It would be awesome if you’d create a full course on react & next.js for Wordpress development. I promise to be your first customer for such course.

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

    Yes I’m very interested in this PLEASE keep it coming !!! Yay!!

  • @ivanbarta2821
    @ivanbarta2821 3 роки тому +6

    If you find time to make another video about Wordpress & Next, I promise I'll take the time to watch it :-)
    Great content! Thanks!

  • @korbel23
    @korbel23 2 роки тому +1

    Hey man this was awesome. I bought a course from Udemy to learn headless wp today, which was 5 hours and it was garbage. This was much more useful and knocked out in 30 minutes

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

    Alot of values in this video, thank you so much 👏

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

    Great tutorial to start headless WP with nextjs. Thank you very much

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

    Great content. Please continue!

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

    thanks for content Alex))
    I hope you will continue that series with WordPress headless + Nextjs or Gatsby as frontend, will be Great :)

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

    Great content, man! Keep going

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

    Thank you this was very helpful and easy to follow

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

    Appreciate this setup. Need to practice for a job thank you 🙏 ❤

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

    Thank you. This is really helpful.

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

    Thanks a lot!

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

    Great tutorial thanks for help :)

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

    great vid. subscribed!

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

    Thank u thank u thank u... u are awesome

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

    A few questions / thoughs
    1. Whats the advantage to using the Image tag in next when I can just use

  • @josuebarros-desenvolvedorw2490
    @josuebarros-desenvolvedorw2490 3 роки тому +1

    Awesome content, thanks sooo much!!!
    Will you create a NuxtJS + Headless WP tutorial??

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

    Great video, I had some issues with an invalid-json error. I used local to deploy a local wordpress site and forked your repo, changed all the URI links to the graphQL to point to my site and I get this Do you know why this would happen? Thanks

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

    ¡Thanks!

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

    Hey! Great video thank you!
    How would you go about this if you want all the site dynamic to the content in WP? What if you had a new blog posts every week or even everyday etc?

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

    Great tutorial ... I would be very interested in how to get dynamic content and how to deploy that.
    I also see that GraphQL can give you the menu object would you be able to build a "normal" multi page website in this manner?

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

    thanks for the tutorial ..
    what if we have like a inventory page and i wanted to develop filtering and everything and the number of data could be more that 1000 ! how i should handle this ?? should i first get the initial data with getServerSideProps and then handle filtering and everything with useEffect ?

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

    Hello, Is this possible to serve some pages from wordpress using page builder and some pages from next js ?

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

    I really do appreciate your efforts but dude I feel you're memorizing stuff or copying and pasting with skipping a lot of information and explanations, but I learned some new stuff from this video, thank you.

  • @How2Forex
    @How2Forex 2 роки тому +1

    That was working but with the same code .. I'm getting FetchError: invalid json response body at ,, Is there's something wrong lately?

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

    Guess I'm going to have to learn Next lol

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

    hello bro
    i have question please
    what can i do to secure this data
    for example i can access to anyone using this plugin in his wordpress site and i can use his posts for my site
    how i can tell my wordpress site to dont provide data to anyone expect me only.
    thank you

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

    Hello, thanks for this video
    I want to host two websites:
    1 - wordpress headless as backend
    2- nextjs application as front end
    what is the best formula to host both

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

    How can i secure the wordpress endpoint , by htaccess and ip ?

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

    where did you copy those methods body stuff the code you json stringify?

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

    Can you please make a tutorial on how to extend the wordpress metadata api for creating custom tables. Please, as soon as possible...please...

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

    i get "TypeError: Cannot read property 'node' of null" when i dont set a featured image. any idea how to fix this so it just doesn't display the image instead of giving me that error?

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

    How to remove extensions from a Graphql query, as thats not needed ?

  • @AsadKhan-cw6ue
    @AsadKhan-cw6ue 3 роки тому

    I have a Question after creating a static site build in nextjs from the WordPress endpoint. are we going to host the WordPress and Nextjs site on different domains? I am confused about this thing. Please guide.

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

      Yes that's the advantage of going with a headless approach. You can host and secure your wordpress backend on your usual php hosting and publish the front-end on vercel or netlify for example for free. It will make your front-end fastly accessible on their hundreds of CDN locations around the world.

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

    How can we use some WordPress Plugins in this way? The only way is through API? if it does not support any API, what should we do?

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

    Gutenberg blocks and elementor integration with Next.js would be amazing 🙂

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

      I don't think that's even possible right now

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

      @@vikashdenzil well actually here is proof of concept and it works fine: ua-cam.com/video/N5UtB36x_O8/v-deo.html :)

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

      if we are talking blocks: generateblocks + generatepress :)

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

      @@pawelkieryk will check it out

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

    When you start the tutorial, is the next.js setup done in a custom theme folder? I'm new-ish to WP development and brand new to next. It looks like you're creating your nextjs project NOT in a WP theme directory, where are you installing the create-next-app? My first query doesn't find any post object.

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

      Correct, it's in a custom folder...it's NOT located in the same folder as WP.

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

      @@WPCasts where should I create this folder so it can connect to the WP site?

  • @Askbowe
    @Askbowe 2 роки тому +1

    How do we include comments

  • @Jennifer-ju8de
    @Jennifer-ju8de 3 роки тому +2

    Before I watch the video... is this a full on tutorial? Showing how to capture pages, menu's and how to have a WordPress install on a live server adjacent to the nextjs export?
    I give you the benefit of the doubt but I saw just too many incomplete tutorials on headless tutorials. I am looking for something production ready.

    • @WPCasts
      @WPCasts  3 роки тому +4

      This is just getting started. Making queries and getting some posts to render. I plan on continuing the series if there is interest from my subscribers :)

    • @pawieplays
      @pawieplays 3 роки тому +3

      @@WPCasts please continue doing this series

    • @Jennifer-ju8de
      @Jennifer-ju8de 3 роки тому +3

      @@WPCasts Absolutely please continue the series. There is such a lack of full tutorials. I really like your style and channel. Its a huge untapped place on UA-cam. Good luck!

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

    How to make the post url without the parent /posts/ or /category/. ex: localhost:3000/hello-world

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

    how to deploy this on vps server?

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

    We need Headless WordPress with Gridsome

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

    I'm getting undefined in the console please I can't find the solution

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

    Sometimes I also use Hello Mars, Good Bye Mars, instead of Hello World😅