Google Sheets to WordPress Custom Post Types with REST API

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024
  • НаукаНаука

Комментарии • 138

  • @mihaiciobanu01
    @mihaiciobanu01 11 месяцев назад +6

    This is awesome, please do more of these tutorials on JetEngine, i think you are one of the best devs on this topic. Cheers!

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад +1

      Thank you, keep coming :)

  • @harzadventure
    @harzadventure 11 месяцев назад +2

    Great tutorial, as always. You show the real power of JetEngine, thank you so much and keep going. :)

  • @christiane-peschen
    @christiane-peschen 11 месяцев назад

    This is a great tutorial, would be great to see more posts like this in the future

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад +1

      Sure, will cover them..

  • @digwillhachi
    @digwillhachi 11 месяцев назад

    your tutorials are great, so useful and nothing else like them.

  • @darthjarjarthewise8051
    @darthjarjarthewise8051 10 месяцев назад +1

    Nice video as always! It would be nice if you could do a video how to optimize a WordPress website, especially a website with crocoblock plugins

  • @sergioolivares
    @sergioolivares 10 месяцев назад +2

    Hello! How can I pass data as select field, or checkbox field instead of text field on JetEngine post types?

  • @visualmodo
    @visualmodo 11 месяцев назад +1

    Very good content :)

  • @AidanJoyce
    @AidanJoyce 10 месяцев назад

    Excellent video and instruction - Thank you for sharing.

  • @xavierbarbot8325
    @xavierbarbot8325 2 месяца назад

    Very useful tutorial, many thanks!

  • @JodKapilakan
    @JodKapilakan 11 месяцев назад

    Thank you for the useful tutorial. A featured image tutorial would be nice

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      You can check these documentation for image
      stackoverflow.com/questions/63830915/read-images-from-system-or-url-using-google-apps-script-in-google-sheets-and-pos

  • @fatjay9402
    @fatjay9402 11 месяцев назад

    Perfect ! .. i will test this

  • @shahinulislam9304
    @shahinulislam9304 11 месяцев назад +1

    Claiming to make a complete tutorial from scratch.

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      complete tutorial for?

    • @shahinulislam9304
      @shahinulislam9304 11 месяцев назад

      @@MoxetKhanPK WordPress post will upload into Google Sheets same as this, please

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      @@shahinulislam9304 i already made it here ruclips.net/video/6MeA0qdhlmI/видео.html

  • @AMIRHANOFF
    @AMIRHANOFF 6 месяцев назад +1

    How to add meta repeater field data so that it works without errors? I tried many options but it doesn't help

  • @nadirdesource164
    @nadirdesource164 3 месяца назад

    Thanks mate ;)

  • @dbx339
    @dbx339 11 месяцев назад

    awesome sir. keep it up

  • @abdulhamid.469
    @abdulhamid.469 11 месяцев назад

    @Moxet Khan Great to learn something new.

  • @mochannel2482
    @mochannel2482 11 месяцев назад

    This is awesome, thank you

  • @ssaikat200
    @ssaikat200 6 месяцев назад +1

    how to set the thumbnail image?

  • @PauloSilva.desingner
    @PauloSilva.desingner 7 месяцев назад

    Excelente tutorial, me sirvió mucho. Sería genial un plugin que haga esa conexión. Pero como crear el postman mi propio? no entendi la integración con wordpress

  • @alfred1411
    @alfred1411 7 месяцев назад

    Great tutorial!
    I have a question. How I can add terms to the post from this sheet to WP? Thanks in advance for your answer.

  • @guruttomanila
    @guruttomanila 9 месяцев назад

    Good Day Master Moxet, is it possible to use jetform builder vice versa? if you edit the fields via form , is there a possible way to sycnhronize post types and googlesheet? this googlesheet method is one of the best way to import or update post types, but what if i want to update post type via form, and it will also update the googlesheet data, if you have tutorials can you share it with us?

  • @juliangomezacevedo4657
    @juliangomezacevedo4657 6 месяцев назад

    I love your tutorials, do you think is possible to do it with cct? maybe some advise on how to do it? thanks!

    • @MoxetKhanPK
      @MoxetKhanPK  6 месяцев назад

      Thank you, it has same concept, CCT also provides endpoints.

  • @casildahursan4985
    @casildahursan4985 7 месяцев назад

    Thank you very much, very useful! With the setup you show in the video, If you update or create a post (Lead) from WP will it be shown in GSheets? Thanx again

    • @MoxetKhanPK
      @MoxetKhanPK  7 месяцев назад +1

      Nope, its one way sync

  • @EkhyOk
    @EkhyOk 2 месяца назад

    Wow, amazing video.
    I need to do 2 things:
    - Assign a Google Sheet to a user so they can edit their posts from Google Sheets.
    - Limit the number of posts to create and so that when a post is deleted in Google Sheets, it is also deleted from Wordress.
    Do you think it is possible?

  • @unggulkirindi6556
    @unggulkirindi6556 10 месяцев назад +1

    It seems like a step in this tutorial is missing.

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      Which is?

    • @unggulkirindi6556
      @unggulkirindi6556 10 месяцев назад

      @@MoxetKhanPK In the status column, Failed 404 / 403 appears. The ID in the Post ID field does not appear automatically. I've followed everything.

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      @@unggulkirindi6556 403 mean you dont have enough permission or your REST API has error.

    • @CarlosMagnoSBomfim
      @CarlosMagnoSBomfim 9 месяцев назад

      Mine, after managing to activate the code and stop giving errors, I have the same problem, it doesn't generate the automatic ID and apparently it prevents the information from being passed to Wordpress.
      I already added Rest API authorizations anyway, but unfortunately it won't work.

  • @codemilestone7697
    @codemilestone7697 11 месяцев назад

    Please send full videos how to enbale also restAPI

  • @kevinwedin
    @kevinwedin 10 месяцев назад

    Thank you! Would you mind showing how to use other meta fields than textfield - say for example checkbox?

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад +1

      Well for each type we need to pass data accordingly, for example checkbox accept direct value, switcher should be true or false and date should be date format and so one. Please try sending meta["checkbox_meta"]="pre-set-check-box-value"

    • @kevinwedin
      @kevinwedin 10 месяцев назад

      Will try! Thanks! And...do you know a way to change the slug of the page with a column that is not Post Title? @@MoxetKhanPK

    • @kevinwedin
      @kevinwedin 10 месяцев назад

      Basicly - when the post title is the same for many posts I dont want it to be /marketingoffer2, /marketingoffer2 etc. So a way to easily customize it. Hope you understand what I mean :)

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      @@kevinwedin Yes you can have unique slugs as per the documentation here. developer.wordpress.org/rest-api/reference/posts/#schema-slug

    • @kevinwedin
      @kevinwedin 10 месяцев назад

      So good thanks! Another question: I have created two CPT - "Education programs" and "Cities". So I have like 800 programs and 150 cities. Is there a way on the CPT for cities, when I create the single post template, to in the listing grid connect each "cities" that I have as a texonomy on the "educations" CPT? I know I could yous the cities taxonomy as a page - but I dont think its optimal in SEO-terms. @@MoxetKhanPK

  • @CarlosMagnoSBomfim
    @CarlosMagnoSBomfim 9 месяцев назад

    Do I need to perform any other configuration to generate the ID via macro? Or add some other permission... Everything worked perfectly in Postman

    • @MoxetKhanPK
      @MoxetKhanPK  9 месяцев назад

      Make sure your code run onChange event so the time you type and leave the cell it will trigger the API and insert ID

  • @sabyasachide9190
    @sabyasachide9190 10 месяцев назад

    Can we connect over email? Have some custom project.

  • @SamWereb
    @SamWereb 11 месяцев назад +1

    02:53 and 06:12 Where do i find my endpoint URL? Is it the same as yours, but with my root domain name url?

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад +2

      Exactly! just change my website URL to yours and the CPT slug with yours, i am using leads as cpt you might have posts or something else.

    • @SamWereb
      @SamWereb 11 месяцев назад

      @@MoxetKhanPK Thank you!

    • @codemilestone7697
      @codemilestone7697 11 месяцев назад

      ​@@MoxetKhanPK how I enable RestAPI and postman??

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад +1

      @@codemilestone7697 explained in first part of video

    • @codemilestone7697
      @codemilestone7697 11 месяцев назад

      @@MoxetKhanPK can you please send me the first part video link please?

  • @PROSIMSI
    @PROSIMSI 11 месяцев назад +1

    hi, its postible insert to CCT?

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      Same method, you need to change the endpoint url to your cct url.

    • @PROSIMSI
      @PROSIMSI 11 месяцев назад

      thanks, its amazing and save my time anf all my clients time

    • @PROSIMSI
      @PROSIMSI 10 месяцев назад

      @@MoxetKhanPK i have next question :) how delete cpt in WP if i delete row in google sheet?

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад +1

      @@PROSIMSI custom code

  • @KaifShaikhTaufiq
    @KaifShaikhTaufiq 8 месяцев назад

    I wanted to learn about hooks , how to create php functions like you did for enail code validation to update check , crocoblock the best way
    What source you would recommend me
    i know elementor , figma designs
    I am learning dyanmic features for wordpress using crocoblock

  • @AnthonyTilahun
    @AnthonyTilahun 7 месяцев назад

    What about other tabs inside of google sheet? How does that work? If I want to create a food menu and want to use cct and create another field with Food type or Drink type, and that field is a drop down selection, how would that work?

    • @MoxetKhanPK
      @MoxetKhanPK  7 месяцев назад +1

      As explained in 6:10 you can choose your sheet. You need to customize the code to meet your requirements.

  • @anthonyespino7214
    @anthonyespino7214 10 месяцев назад

    Hi friend. Greetings from Peru. You are big. I have a question. Can you relate to an author (user) from Google Sheets?, since said post has to be related to an author (user).

  • @User9482-z2s
    @User9482-z2s 5 месяцев назад

    Hello Sir! Do we need to add 'post_' before each meta variable?

  • @EkhyOk
    @EkhyOk 2 месяца назад

    Is it possible to assign a Google Sheets sheet for each user? I have a multi-vendor store and I want the products to be managed from Google Sheets. Is this possible?

  • @StratonOakland
    @StratonOakland 11 месяцев назад

    Again Great Tutorial!! Question: Can we achieve this also with cct?

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      Same method, you need to change the endpoint url to your cct url.

    • @AnthonyTilahun
      @AnthonyTilahun 5 месяцев назад

      @@MoxetKhanPK This is not the same method, I've tried this several times with cct and the CCT value names are not the same, For Ex. You're not working with Post IDs, but rather _ID (ITEM ID), alot changes, a simple url swap for the endpoint doesn't work

    • @MoxetKhanPK
      @MoxetKhanPK  5 месяцев назад

      @@AnthonyTilahun You need to learn the logic, offcourse it can't be 100% same if the instances are not same.

  • @AbdulrahmanAlharthy-j5h
    @AbdulrahmanAlharthy-j5h 11 месяцев назад

    Thank you, brother Moxet Khan, for your excellent tutorials.
    I have a question for you:
    Is it possible to replace the date field used in JetFormBuilder with the bootstrap-datepicker or any other service so that it appears uniformly across all browsers?
    Thank you for your fantastic efforts!

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад +1

      Yes possible but you need to contact crocoblock support to give you the right direction. Worst case scenario you can use jquery.

  • @fatjay9402
    @fatjay9402 8 месяцев назад

    @Moset Khan is it possible to load in allready made Wordpress post and Edit it with googlesheet so you can do it faster ?

    • @MoxetKhanPK
      @MoxetKhanPK  8 месяцев назад

      i don't see any benifits of importing wordpress to sheet, edit and publish it again unless it is a tabuler data.
      Yes it is possible..

    • @fatjay9402
      @fatjay9402 8 месяцев назад

      @@MoxetKhanPK Because for example i have a 2000 Posts that i need to update fields and ( put in info for the new felds ) and doing that manual takes around 5 - 10 mins per Post right now.. i was hoping to do it faster in google sheets and using maybe ChatGPT or something .. That why i am asking

  • @popopp2297
    @popopp2297 11 месяцев назад

    This is amazing! In App Script, what type of deployment do I need to select? There is 4 options: Web App, API Executable, Add-on and Library. Thank you for your training video.

    • @popopp2297
      @popopp2297 11 месяцев назад

      I figured out my question. A great addition to this video would be field mapping and how to build out your page or post with this data from a UI perspective.

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      @@popopp2297 That is the most simplest thing, once you transfer CPT from Google to Worpdress the rest of the methodology is similar, there are dozens of tutorial covers how to design the UI.

  • @FuriosMind
    @FuriosMind 8 месяцев назад

    Hi, this works both ways? If I edit the post on wordpress he will update on gogle sheets?

  • @AlumMiah-p3h
    @AlumMiah-p3h 11 месяцев назад

    Can you do a video of dynamic function for jet engine thanks

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад

      What exactly you need in dynamic function?

    • @AlumMiah-p3h
      @AlumMiah-p3h 11 месяцев назад

      @@MoxetKhanPK I would like add a calculation function with meta fields or rest API fields values

  • @alarsefilm
    @alarsefilm 6 месяцев назад

    Hello, I generated a formula to add 20% to a value but since it is not typed and it is a calculation, it does not take the update, that is, the value is never sent to the CPT, I tried typing a value in that box and there it is Send correctly, any idea what it could be?

    • @MoxetKhanPK
      @MoxetKhanPK  6 месяцев назад

      You need to change the trigger from change to save i guess.

  • @MDABUSHAYDMOUDUDI
    @MDABUSHAYDMOUDUDI 10 месяцев назад

    Sir please making a video about create chatting function with jet engine.

  • @stefaniacharitou
    @stefaniacharitou 11 месяцев назад

    Could this or something similar work with ACF fields in a CPT? I'm trying to create a verb conjugator, so verbs are my custom posts, and each post's content is full of ACF fields for all the different verb forms (I am, you are, he is, etc.).

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      It must work, i never used ACF with this sort of integration but the flow/mechanism is more or less same. They also use REST API.

  • @matthieudondey8844
    @matthieudondey8844 4 месяца назад

    I'm tring to pass meta field information as numbers but I keep getting an error Failed: 307 or an error Failed: 400 whenever I try to add in data for the meta fields. Why would that be? Could someone help? Is the process different if the meta field is not a "Text" but a "Number" ?

    • @matthieudondey8844
      @matthieudondey8844 4 месяца назад +1

      Ok after maaaaany hours of trying to pass a number to a meta field of type "Number", I found the solution! (I kept having a Failed: 307 error)
      var post_numberMeta = sheet.getRange(affectedRow, 4).getValue().toString(); // Ensure post_numberMeta is a string
      Key is to add the ".toString()" function. In the CPT, it is still interpreted as a number.

  • @guruttomanila
    @guruttomanila 8 месяцев назад

    Do You have codes for CCT? tried using the code in CCT but cant able to run it, i change post_title to my CCT Title like sample_title

    • @MoxetKhanPK
      @MoxetKhanPK  8 месяцев назад +1

      There is one shared by Haxrat Bilal in Facebook group do check.

    • @guruttomanila
      @guruttomanila 8 месяцев назад

      can you send us a link for this group?@@MoxetKhanPK

  • @chunaksharora7463
    @chunaksharora7463 9 месяцев назад

    when im updating phone its says error 400. but when im inserting text in phone its updating but not updating with just numbers. why?

    • @chunaksharora7463
      @chunaksharora7463 9 месяцев назад

      got it the data type in google sheet for the number was numeric it should be plain text

  • @codemilestone7697
    @codemilestone7697 11 месяцев назад

    boss Brother Just boss

  • @codemilestone7697
    @codemilestone7697 10 месяцев назад

    On How to connect with taxonomy like city ??

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад +1

      Send city ID from your sheet

    • @codemilestone7697
      @codemilestone7697 10 месяцев назад

      @@MoxetKhanPK I already did with taxonomy id using Array but It's not working dynamically please can you help me?

    • @codemilestone7697
      @codemilestone7697 10 месяцев назад

      @@MoxetKhanPK if you want can I share you my code??

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад +1

      @@codemilestone7697 why array? You should pass integer value of term ID just like i did in this tutorial

    • @codemilestone7697
      @codemilestone7697 10 месяцев назад

      @@MoxetKhanPK its not working I did lots time on google sheet Apps script then I going to help Chat GPT and try to work like 3 days still not solve this issue can you please help me this one time my humble request please

  • @DavidMurrin77
    @DavidMurrin77 11 месяцев назад

    Can you also delete a post this way?

    • @MoxetKhanPK
      @MoxetKhanPK  11 месяцев назад +1

      Yes you can, you can follow this guideline
      wordpress.stackexchange.com/questions/400993/delete-request-using-wp-rest-api

  • @kevinwedin
    @kevinwedin 8 месяцев назад

    I've made Meta Field for "date" in my CPT. But when typing the date in the Google Sheets, it does not happen anything with the Meta Field inside the post. Is there a specific way to write the date in Google Sheets to make it get in as a date? Thanks in advance.

    • @MoxetKhanPK
      @MoxetKhanPK  8 месяцев назад

      Parse date in code before sending it to wordpress in proper format. Most probabaly push it as string

    • @kevinwedin
      @kevinwedin 8 месяцев назад

      Hmm. What would that be for say 08/03/2024 (March 8 2024)?@@MoxetKhanPK

    • @kevinwedin
      @kevinwedin 8 месяцев назад

      @@MoxetKhanPK Hmm...Nothing happens when I push "2024-03-16" in Google sheets. Can't send picture here to show, do you have any reccomendation?

  • @uminurlis
    @uminurlis 10 месяцев назад

    what if we want to add an image, and what code do we add in the app script. can you show and write the code please

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      chatgpt and google is your friend, do a bit research and use base64 encoded image.

    • @uminurlis
      @uminurlis 10 месяцев назад

      @@MoxetKhanPK i don't have coding skill, i'm stil new in this, can you help me

    • @MoxetKhanPK
      @MoxetKhanPK  10 месяцев назад

      @@uminurlis you can send message on my fiverr to discuss in details

  • @CarlosMagnoSBomfim
    @CarlosMagnoSBomfim 8 месяцев назад

    Did anyone get it and could help me?
    I tried every possible way, in Postman it works perfectly, but when I switch to Google Sheet it doesn't work. Problem with the spreadsheet, it doesn't generate the Id or the Status, I've tried to configure it in different ways but I can't, I've been trying for a week and nothing, could anyone help me?

    • @AsadRafique-zw3ey
      @AsadRafique-zw3ey 7 месяцев назад

      Same Question From my side as well how Post ID and Status generated automatically ?

  • @devonjordaan5181
    @devonjordaan5181 8 месяцев назад

    Hi, I followed the whole setup but for some reason its not working? How does the sheets connect to wordpress?

    • @MoxetKhanPK
      @MoxetKhanPK  8 месяцев назад

      It connects with REST API

    • @devonjordaan5181
      @devonjordaan5181 8 месяцев назад

      Hi, when I did all the things you did above its not connecting to the website. When I add something on the sheets the status shows "Failed: 404"
      I even created the same cpt as you and same metafields with same ID and everything. Do you maybe know why its doing that? @@MoxetKhanPK

    • @devonjordaan5181
      @devonjordaan5181 8 месяцев назад

      Hi, when I start adding items in sheets the table says Failed: 400 of Failed: 404. I added the exact same cpt as you with the same metafields and still its not working. When I use Postman it creates the posts but when i add to sheets after everything its not working? @@MoxetKhanPK

    • @devonjordaan5181
      @devonjordaan5181 8 месяцев назад

      Hi, I finally got it! It was my Jetengine fields that was corrupt for some reason. I now have another question, I am pushing data from zoho flow to sheets. So now sheets is not seeing the trigger "on edit" so its not publishing the posts... How can I somehow make the trigger run when flow pushes the data? @@MoxetKhanPK

    • @devonjordaan5181
      @devonjordaan5181 8 месяцев назад

      Moxet helped with this, thanks so much. Quick and reliable :)

  • @AnthonyTilahun
    @AnthonyTilahun 5 месяцев назад

    Why don't you link to postman?

    • @MoxetKhanPK
      @MoxetKhanPK  5 месяцев назад

      Why should i do?

    • @AnthonyTilahun
      @AnthonyTilahun 5 месяцев назад

      @@MoxetKhanPK Not to your post man link but just to the url itself, it would be helpful to those that are just beginning.

    • @MoxetKhanPK
      @MoxetKhanPK  5 месяцев назад

      @@AnthonyTilahun the video is not about postman

  • @AlejandroLopez-dz4xn
    @AlejandroLopez-dz4xn 6 месяцев назад

    Thank you for your tutorial, but i believe your are missing an important thing, lets say you need to load a big chunk of data, how would you do it? as far as i understand, here you explain how to do it one by one, but when you have loads and loads of rows, this example its not really a good idea, is it?

    • @MoxetKhanPK
      @MoxetKhanPK  6 месяцев назад

      I know that, two solutions- the trigger should be changed to save and the code must be alter as well. Alternatively use free plugin if data is a lot.

  • @fatjay9402
    @fatjay9402 9 месяцев назад

    Sorry this is not clear... do i need postmade to use Google sheet , ?? Pls make better steps for what is whats ir feels like have of Infos are missing 😢 😢😢

  • @ib4112
    @ib4112 11 месяцев назад

    PErfect

  • @KaifShaikhTaufiq
    @KaifShaikhTaufiq 8 месяцев назад

    Hello there, why don’t you create a discord server and people with like minded can help each other

  • @CarlosMagnoSBomfim
    @CarlosMagnoSBomfim 8 месяцев назад +1

    Did anyone get it and could help me?
    I tried every possible way, in Postman it works perfectly, but when I switch to Google Sheet it doesn't work. Problem with the spreadsheet, it doesn't generate the Id or the Status, I've tried to configure it in different ways but I can't, I've been trying for a week and nothing, could anyone help me?

    • @ronnyar
      @ronnyar 3 месяца назад

      Same problem :(