Display Queried External API data on the WordPress Front-end using Shortcodes

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ธ.ค. 2024

ความคิดเห็น • 229

  • @rhuzaifa
    @rhuzaifa 2 ปีที่แล้ว +1

    My man, I had been stuck at this for 2 days. Finally found this tutorial, Thanks.

  • @nelwey97
    @nelwey97 4 ปีที่แล้ว +2

    You don't know how useful this was, I'm new in wordpress and I was cracking my head trying to display data from an external API, thanks a lot

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I am glad this helped. Let me know if any other challenges.

    • @nelwey97
      @nelwey97 4 ปีที่แล้ว

      @@TechiePress Actually yes, Do u know how can I integrate a service with woocommerce?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      More details are needed.

    • @nelwey97
      @nelwey97 4 ปีที่แล้ว

      @@TechiePress For example, like in the video I can get some data from an external API but now I want to store that data in the database and manage it with woocommerce

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Check this edited series WordPress CRUD with Database - Real Life Examples. It will show you how to get data from external API, create a dB and use that data th-cam.com/play/PLNqG1qGUllk0Ov_KPxypiZ-4ZzwW5pyPz.html

  • @tinashegwenhamo7481
    @tinashegwenhamo7481 ปีที่แล้ว

    You are a life saver. After wasting many hours looking for this solution, I bumped into your video, very helpful indeed 👏

  • @21dimosaek
    @21dimosaek 4 ปีที่แล้ว +9

    I was looking all over the internet for this kind of tutorials. You make it simple and fast. Great job! Keep it up! :D

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I am glad you are enjoying them. Let me know if you have any questions.

    • @21dimosaek
      @21dimosaek 4 ปีที่แล้ว

      @@TechiePress I only have one question I just noticed. What is the dot before the = when you are adding HTML code? Is it just a normal dot or a specific symbol? And if it's not a simple dot then how can I add it? Thanks in advance :)

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Hello DP. It is a normal period/dot. In PHP if you are adding another string of content to an existing variable, you use the same variable name like $soupname then dot = and then the content to add to the exiting variable.

  • @Zanktus
    @Zanktus 3 ปีที่แล้ว +2

    After 5 hours of indepth WP Docs, several websites and stackoverflow results I finally landed here. It is so difficult to find a proper XML to frontend solution based on external sources. So thanks a lot man, you made my day!

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      So glad you found value. Thanks for watching.

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว +1

      By the way made something for XML here. th-cam.com/video/chNl043VR_E/w-d-xo.html Might be useful for another person. Cheers!

  • @adiyogaid
    @adiyogaid ปีที่แล้ว

    Hello TechiePress! I want to ask, if I use this, can the content be crawled by google as SEO?

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      Yes, google crawls the pages as though it’s rendered with the data. So SEO is fine.

    • @adiyogaid
      @adiyogaid ปีที่แล้ว +1

      @@TechiePress Nice! Thank you for you information

  • @Mr.Thenula2011
    @Mr.Thenula2011 4 ปีที่แล้ว +2

    Looked everywhere for this finally found it, Thanks mate.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Glad I could help. I have something else coming up for saving the details in the database and then use the shortcode to expose that data this week. Keep looking out.

  • @seanh1595
    @seanh1595 3 ปีที่แล้ว +2

    Thank you for the tutorial. It has really helped a lot but i have a small issue at the moment. Using your example of a table, one of the fields i am pulling is the date but it is returning the full date and timestamp. How to do I clean that up to just a date from JSON? $result->date returns 2021-05-13T16:55:40 which I want to obviously try and clean up.

    • @seanh1595
      @seanh1595 3 ปีที่แล้ว

      That is a pity, I was really hoping you might have been able to help :(

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      What format of date do you need? stackoverflow.com/a/5367048 might have some quick help on how too.

    • @seanh1595
      @seanh1595 3 ปีที่แล้ว

      @@TechiePress Just Day, Month, Year (20-5-2021)

    • @seanh1595
      @seanh1595 3 ปีที่แล้ว

      I have been searching nonstop but I just cannot find how to do it.

    • @seanh1595
      @seanh1595 3 ปีที่แล้ว

      @@TechiePress Nah that confuses me even more since I think I would have to first store the dumped date from the json in the database before I can convert it to a clean date. Man this thing has me really tied up.

  • @BGdev305
    @BGdev305 ปีที่แล้ว

    VERY WELL DONE!!
    I know this video was done some time ago.. but I'm wondering if pulling data from API like this is faster than pulling data from the DB (query loop)?

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      It depends on the resources the API hosting server has compared to the DB host.

  • @thomastill7731
    @thomastill7731 2 ปีที่แล้ว +1

    thank you very much. Very helpful Video!!!

  • @ilhamvannyputra4823
    @ilhamvannyputra4823 3 ปีที่แล้ว +1

    how to use thumbnail from external API data image?
    we really need this answer.
    thanks

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      This will upload soon. I have been caught up.

    • @ilhamvannyputra4823
      @ilhamvannyputra4823 3 ปีที่แล้ว

      @@TechiePress Thank you, happily waiting for it ^_^

  • @wawayplays
    @wawayplays 2 ปีที่แล้ว

    im using windows 10, where can I edit the code?

  • @benjaminlee2833
    @benjaminlee2833 3 ปีที่แล้ว +1

    Many Thanks! Nice Work!

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I am glad it was helpful.

  • @boxofficecharm
    @boxofficecharm 2 ปีที่แล้ว +1

    Excellent tutorial! Thank a lot. This will help so much!

  • @GoTechUG
    @GoTechUG 4 ปีที่แล้ว

    Loved it so much seeing how you used a shortcode to through data on page. Thank you

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Glad you enjoyed it!

  • @asmaamin9046
    @asmaamin9046 ปีที่แล้ว

    how to add images too?

  • @technologycore
    @technologycore 2 ปีที่แล้ว

    Thank you so much friend, this helped a lot to learn. one question how do I change this to search by user input keyword?

  • @webereaugusto
    @webereaugusto 2 ปีที่แล้ว

    the best tutorial, saved lifes!

  • @dasha4627
    @dasha4627 2 ปีที่แล้ว

    exactly what i needed!! thank you so much :)

  • @NariMen-zt3vg
    @NariMen-zt3vg ปีที่แล้ว

    thank you so much for the video , i want to retrieve data from an external API and display it in a variation dropdown of a variable product after that to post an order to my API . thank you so much

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      No code tools solutions
      Use a tool like Make.com and their woocommerce modules especially to call the API and add new products into your WordPress.
      Coding Solution
      This is a lengthy challenge, one you would hire a dev with knowledge of how to if you are time barred.
      Make calls to the API and use wp_insert_post (developer.wordpress.org/reference/functions/wp_insert_post/) to the products custom post type.
      Some parts of the product post are post meta so you can use update_post_meta (developer.wordpress.org/reference/functions/update_post_meta/)
      However, I would advise you to use something like Action Scheduler (actionscheduler.org/usage/) to automate the sync of the products.

  • @DarrylSyms
    @DarrylSyms 2 ปีที่แล้ว +1

    Thanks man!

  • @fabioruggirello6524
    @fabioruggirello6524 ปีที่แล้ว

    Great video! I have a question. If I use a external api (showcase vimeo in thi s contest in order to display all videos from a specific showcase), how can I display a determinate number of videos and integrate a Wordpress pagination?...the json result are not posts, If I would want use the Wp_Query, because displaying 20 and more videos in one single page is a Bad Ux.
    How can I handle this? Ive just followed this video and used your code and this work, but form my purpose, How I can solve this?

    • @fabioruggirello6524
      @fabioruggirello6524 ปีที่แล้ว

      In short....Is possible convert a specific jason result in a 'Post_type' in order to use a WP_Query?

  • @learnwithharry4856
    @learnwithharry4856 3 ปีที่แล้ว

    Thanks for uploaing this video its very helpful , i seen all of your api call video but in this video which plugin is used ? can you share plugin details ... i used query-api plugin but it didnt work for me

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Thanks for watching. I make specific code for each video. Please check the description to see the code link.

  • @Freaky_Deaky
    @Freaky_Deaky 3 ปีที่แล้ว

    It's very helpful. Loved your way of explaining

  • @rajendraparmar1501
    @rajendraparmar1501 3 ปีที่แล้ว +1

    Sir great job!!!...can you teach or add image field for external API integration please...@thanks...

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Can you share some more information on what you mean by add image field?

    • @rajendraparmar1501
      @rajendraparmar1501 3 ปีที่แล้ว

      @@TechiePress Thank you for the reply, Sir, I am talking about API Integration for Post Featured Image (post_title, post_description, #post_thumbnail, etc...)

  • @seanh1595
    @seanh1595 3 ปีที่แล้ว

    How would you add authentication to this? For example, you were pulling data off another wordpress website that requires authentication with WP REST API. Have you a tutorial on authenticating?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      It depends whether the site populating data has requirements for the rest API. Do you manage the data source? You could make an open endpoint. However, I have done something in this line with Woocommerce th-cam.com/video/FGqydIm4tN8/w-d-xo.html and th-cam.com/video/WSXKPVjgik8/w-d-xo.html

  • @clementdelcourt3948
    @clementdelcourt3948 3 ปีที่แล้ว

    Thanks a lot for your Video !
    May it be possible to add a CSS file (linked to your PHP script) using Material-UI elements when you develop the plugin ?
    Thank you in advance for your answer !

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      Hey. I did something in th-cam.com/video/W9kXsMI4oU4/w-d-xo.html. You use the same functions wp_enqueue_scripts and wp_enqueue_style to fix this. I have another example here th-cam.com/video/wdmA87BhNjA/w-d-xo.html

  • @alessandroebejer7293
    @alessandroebejer7293 3 ปีที่แล้ว

    In this example you get the street inside the adress how do you get the lat variable inside the geo inside the adress ?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      You can loop through the information like the other pieces of code. Just var_dump the results to see the right name of the result object you are looking at.

  • @Freaky_Deaky
    @Freaky_Deaky 3 ปีที่แล้ว

    Can you make a video on how to get dynamic blog posts from API and within that also single detailed post?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      By dynamic, do you mean they change data/information every so often so it needs to reflect on the other side of the API?

  • @yookaze
    @yookaze 3 ปีที่แล้ว

    Hi, thank you for the video. I was wondering how does this video connect with the previous one. So, I would need to have the API Plugin, and then this code. Or in this video, are you modifying the code for the plugin ? ( does it have to be a plugin, or can I just dump this code in my .php files?) thank you

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      The previous video explained the core principle and gives you the starter code, however, you can pick up from this video.
      You can put this code for this video in your functions.php file or a file included in functions.php file. This video explains where to put your files th-cam.com/video/9LtXEMRNln8/w-d-xo.html

  • @joakinc
    @joakinc 2 ปีที่แล้ว

    my friend great job !!! congratulations !!!!, file in video is not put on github on repo YTTechiePress
    /
    query-apis

  • @russellazim6589
    @russellazim6589 3 ปีที่แล้ว

    *TechiePress* how many user name I show, how i control, If i want to show this table by my wp admin panel like add_action( 'admin_menu'), how i do that

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I am sorry, I don’t understand your question.

  • @mfaizanshahid3229
    @mfaizanshahid3229 4 ปีที่แล้ว +1

    Hello, It is a silly question but as i am new to wordpress i'll ask it, is this file already in the folder or it is associated with some plugin or if you have created it then what is the path of this file in wordpress? and also can i use functions.php file to write all this?
    Please help me through this. Thanks a lot :)

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      You can do it both ways, either have the file there from the start (safest way). It works with this particular plugin I have written. You can see the difference of having a plugin or using functions.php here th-cam.com/play/PLNqG1qGUllk0wJsIzxXGA0zNGEZ5H8Ko1.html but there is no issue with you using the code in functions.php

    • @mfaizanshahid3229
      @mfaizanshahid3229 4 ปีที่แล้ว

      @@TechiePress thank you so much, this video helped me achieved what i wanted to do

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      I am glad. Let me know if you get any other challenges.

  • @glorialuyao6684
    @glorialuyao6684 3 ปีที่แล้ว

    Thanks for this tutorial. Does it support a xml api data url? and multi-language?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Yes. You can receive xml api data and convert to json or use as PHP.

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      By the way made something for XML here. th-cam.com/video/chNl043VR_E/w-d-xo.html Might be useful for another person. Cheers!

  • @archananagrulkar2965
    @archananagrulkar2965 4 ปีที่แล้ว

    Is it possible to use all functionality of WooCommerce without using local database? Can we configure it with any existing order management system? With integrating every functionality with external API's.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Simple answer is yes. But you would need to break it down for me to get a more suitable answer. What do you envision? Reach me t.me/omukiguy

  • @yookaze
    @yookaze 3 ปีที่แล้ว +1

    Also I noticed that the code you are sharing on github is different from the one you were teaching in the video.

    • @nirzaripatel9405
      @nirzaripatel9405 3 ปีที่แล้ว

      Yes, I have the same issue. I downloaded plugin from github and installed. I am now putting short code in my wordpress post but it does not show the table as a result. Can you please help. Thanks

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I will fix. Thanks for sharing

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I will fix it. If you have a PR that would be great.

  • @kilianhaas785
    @kilianhaas785 ปีที่แล้ว

    Is it also possible to customize the table with css?

    • @TechiePress
      @TechiePress  ปีที่แล้ว +1

      Yes, you can add a class to the table and use css files to style. Look into how to add styles sheets developer.wordpress.org/reference/functions/wp_enqueue_style/

  • @tharungowda5219
    @tharungowda5219 4 ปีที่แล้ว

    hi,
    it is very helpfull.
    but i got an error when i used json_decode for body enclosed with json obj
    for 5:00 i am getting output as: null
    any suggestions?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Do you get any results before json_decode? Can you var_dump without json_decode to see if the right api url was used?

    • @tharungowda5219
      @tharungowda5219 4 ปีที่แล้ว

      @@TechiePress i got it thank you.
      Nice tutorial.

    • @tharungowda5219
      @tharungowda5219 4 ปีที่แล้ว

      :I have a another doubt in this video: 7:34
      In url if i do ?Username=Bret
      will it fetch row of Bret???
      if not how to do?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      You will need to follow the API documentation given. They usually tell you how to query only one

    • @tharungowda5219
      @tharungowda5219 4 ปีที่แล้ว

      @@TechiePress okay .

  • @laurahicks6498
    @laurahicks6498 2 ปีที่แล้ว

    Is this playlist/video still current for today's up to date wordpress? anyone know?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว +1

      Yes, this till works to date.

    • @laurahicks6498
      @laurahicks6498 2 ปีที่แล้ว +1

      @@TechiePress Thank you!

  • @martinhespesailing1436
    @martinhespesailing1436 4 ปีที่แล้ว

    Thanks for the tutorial! Does anyone know how I can impersonate the call against Office 365?

  • @adlynmedia
    @adlynmedia ปีที่แล้ว

    Your Video Looks Good, and How to add Query Parameters? That means filter faction

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      Do you mean something line External WordPress APIs Query with headers parameters
      th-cam.com/video/Qc89RrF2ZC4/w-d-xo.html

  • @aradhyakashyap1908
    @aradhyakashyap1908 3 ปีที่แล้ว

    I tried the same by using the code in the plugin..but as I am using shortcode in brackets it shows the same shortcode in brackets as an ouput on the front end...means the code isnt working for me..Pls help

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      Run your shortcode with
      echo do_shortcode([shortcode-name]);

    • @aradhyakashyap1908
      @aradhyakashyap1908 3 ปีที่แล้ว

      Okay thanks! I have one more question..
      How can I use POST method instead of GET?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      This is how to do it th-cam.com/video/MAVHIC9DMrs/w-d-xo.html

  • @jangemi
    @jangemi 4 ปีที่แล้ว +1

    Thanks so much for this tutorial. I really appreciate it.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      You're very welcome!

  • @nurulfarhana2773
    @nurulfarhana2773 4 ปีที่แล้ว

    Sorry for asking this, if i have product data to be displayed on woocommerce but it is from external api/ json, how can i display it? Please help me

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I hope I understand you well but if you mean add product data to your site from an external source, you need to store the data in your product custom post type. In this video, you can learn how too. th-cam.com/video/hEyC2tU6bLY/w-d-xo.html

    • @nurulfarhana2773
      @nurulfarhana2773 4 ปีที่แล้ว +1

      @@TechiePress okayy thank you for replying me

  • @archananagrulkar2965
    @archananagrulkar2965 4 ปีที่แล้ว

    Can i use same method of creating Shortcodes for product? As i want to get products from external API in my Woocommerce Application and display it on front end.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Yes, you can use this from any API and list your commodities. However, Woocommerce it’s self has a REST API that can be called in any application but with a short coming of not being able to pay for the goods using that API.
      See: docs.woocommerce.com/document/woocommerce-rest-api/
      WooGraphQL plugin solves that.

    • @LawrenceMakoona
      @LawrenceMakoona 4 ปีที่แล้ว

      @@TechiePress I'd like to do just that. How do I go about adding the credentials within the plugin?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      You need to know the requirements of the API. If it requires authentication, you need to know if it requires the details in the header or in the body. In this video I use authentication to send data to another server th-cam.com/video/lZc2Ebesl0o/w-d-xo.html

  • @rojgaradmin4422
    @rojgaradmin4422 4 ปีที่แล้ว

    Hello, Thanks for the video It is very helpful..
    can you please tell me how to retrieve data same way if the URL has a key?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Can you share the documentation of the API you are using? I can make it an example.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      You can see this example. th-cam.com/video/UZZzn7euTgM/w-d-xo.html or this th-cam.com/video/FGqydIm4tN8/w-d-xo.html they have different keys scenarios.

  • @ehsanham4797
    @ehsanham4797 3 ปีที่แล้ว

    I want to know if is it any way we can add pagination into this table of results , just imagine we have 1000 result , how should we enable the pagination for this ?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      If you check out this video th-cam.com/video/wdmA87BhNjA/w-d-xo.html in minute 13 I share how to add such a table with pagination. You just need to put the two ideas together

    • @ehsanham4797
      @ehsanham4797 3 ปีที่แล้ว

      @@TechiePress Thank you , i checked your video . its going to add this JS and CSS only in admin , what should I do if I need to add this on every other pages except the admin environment , such as any other front-page ?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Instead of using admin_enqueue_scripts hook, use the wp_enqueue_scripts developer.wordpress.org/reference/hooks/wp_enqueue_scripts/

  • @Rickmaz1
    @Rickmaz1 ปีที่แล้ว

    Hi there how can I get a hold of you for assistance?

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      Hello Glenric, please reach me via omukiguy.com/contact-me

  • @hassaanali1822
    @hassaanali1822 2 ปีที่แล้ว

    after url if i have auth token then how to code that ?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      Depends on how the authentication is required to be passed. Sometimes in the headers or as part of the body. You can see an example of how to do that here th-cam.com/video/vrwXgcOmvQ8/w-d-xo.html

  • @heavenworld145
    @heavenworld145 4 ปีที่แล้ว

    Hello,
    I'm new to wordpress core. Can you give me source code link plz? I can't understand where will I start.
    I want to update dynamic data in my wordpress site using external API

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      I am sorry I do not have the whole code. I will consider rewriting it and uploading it. However, To get the starter code, Download the code from github.com/YTTechiePress/query-apis and then follow the video as you make the changes to the plugin so you can modify it to your needs. Learning includes doing some hard work ;-)

    • @heavenworld145
      @heavenworld145 4 ปีที่แล้ว +1

      @@TechiePress thank you bro...

  • @mohamedaminechouri
    @mohamedaminechouri 2 ปีที่แล้ว

    how can i pass another url and consume it on the same code?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      What does this mean?

    • @mohamedaminechouri
      @mohamedaminechouri 2 ปีที่แล้ว

      @@TechiePress i mean how can i consume two api url on the same page or code so i can show on the table data from different api ( for exemple i want to show on the table users from api url 1 and on the same table i want to show their grades from another api url) possible,?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      Make two API calls. Use two wp_remote_get() and utilize the data the way you want.

  • @Andros73
    @Andros73 4 ปีที่แล้ว

    Thanks very much for this video. Very interesting.

  • @TheHsystem
    @TheHsystem 2 ปีที่แล้ว

    Very nice content @TechiePress thank you much for this. I have a question, please can you explain how to use a custom PHP file as a template that will render the $html variable you used in your tutorial?

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      That’s a nice question. I hope I can make time to show this in a real task.

  • @aogunnaike
    @aogunnaike 4 ปีที่แล้ว

    God bless you bro, please is it possible to fetch data from API and afterwards integrating payment with it e.g assuming the above fetched data are register users approved for payment, how can I integrate a paystack or quickteller payment gateway? Do I install a plugin or code it in my custom plugin? Please I need response soonest. Thanks in anticipation

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Build Custom WooCommerce Payment Gateway th-cam.com/play/PLNqG1qGUllk21IES6ZJ2WkX1BcbPQF4-7.html this shows you how to do this from scratch 2-6 help the most

    • @aogunnaike
      @aogunnaike 4 ปีที่แล้ว +1

      @@TechiePress thank you very much, I'll keep in touch

    • @aogunnaike
      @aogunnaike 4 ปีที่แล้ว

      Is is possible to create a customer theme with a custom plugin and also be able to install pre made plugins on WordPress? Or there are standards to follow, thanks you

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Yes you can. Look at this tgmpluginactivation.com/. It the best approach I know of to help you with that challenge

    • @aogunnaike
      @aogunnaike 4 ปีที่แล้ว

      @@TechiePress ok thank you so much , here is my email: abbey.paul55@gmail.com pls I would like to be in touch

  • @joshstoll234
    @joshstoll234 4 ปีที่แล้ว

    I get a 502 error whenever I try and activate my 'external-api-shortcode' plugin. Is this supposed to be its own plugin? I guess I am confused since you never talked about where external-api-shortcode came from and didn't mention anything about query-api from last video. If you could help me I would appreciate it!

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Sorry about that. A 502 Bad Gateway Error means that the web server you've connected to is acting as a proxy for relaying information from another server, but it has gotten a bad response from that other server. It’s not your issue. It’s the API. In the video description, I make mention of the code for the previous code with a link.

    • @joshstoll234
      @joshstoll234 4 ปีที่แล้ว

      @@TechiePress I deleted everything in the file and redid it and now it is working. Thank you so much for this tutorial it's extremely helpful!

  • @ryanadikara6354
    @ryanadikara6354 4 ปีที่แล้ว

    Can you show me how to queried external API, if the link of API used auth to fill username and password??

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Depending on the API implementation, some require you add your details to the header or body. I am working on something similar soon. However, you can see something similar with Woocommerce th-cam.com/video/FGqydIm4tN8/w-d-xo.html and this too th-cam.com/video/UZZzn7euTgM/w-d-xo.html the implementations are different but effective in most APIs

    • @ryanadikara6354
      @ryanadikara6354 4 ปีที่แล้ว

      @@TechiePress thank you vm... i'll be waiting you're video cuz i always get some error on that...

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Send me an email on web at mediauganda dot com

  • @nadeemnarah1378
    @nadeemnarah1378 3 ปีที่แล้ว +1

    Thanks Alot..

  • @saudpardesi8598
    @saudpardesi8598 3 ปีที่แล้ว

    Hello. i am using POST method and getting error string(171) "{"response":{"status_code":300,"status":"failed","message":"Object reference not set to an instance of an object."},"Message":null,"ObjectResponse":null,"DataObject":null}". please help i am new to API world ;-)

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Hi, The error message is not so clear. It is also hard for me to tell since I don’t have the API documentation to trouble shoot. Seems like you have sent the wrong data type to the API from the little I can tell. If you are Posting data you might need to look at this th-cam.com/video/_UurgJqlTw8/w-d-xo.html

  • @bagussuryo550
    @bagussuryo550 3 ปีที่แล้ว

    why my table dont appear in front end?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Something is broken in your code. First add a simple static table then add the dynamic work.

  • @JFFKBF
    @JFFKBF 3 ปีที่แล้ว

    Thanks for good tutorial, where can i download the script itself?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Thanks for watching. The link is in the description. Download the code from github.com/YTTechiePress/query-apis

  • @niltonguerra3213
    @niltonguerra3213 4 ปีที่แล้ว

    Thank you so much for your videos, they are very helpful. I am new in wordpress and with this video i think i have almost done what i was looking for. Do you know how can i call the short code api with a button passing a parameter instead of calling all the time when page is refreshed?. Eg : i have an api of restaurants, but i do not want to display all, i just want to call api according to input in restaurant id and call api according to this restaurant id for then getting this into a javascript object. I would be very thank you if you can point me to right direction. Regards.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Hello Nilton, I am glad the video helped. Do you want to use the button on the front end or the admin area? Do you want to add an input field ?

    • @niltonguerra3213
      @niltonguerra3213 4 ปีที่แล้ว

      @@TechiePress on the front end , so the user can use the api with his input :). Thanks again. Yes i want to add input field and this would become a parameter to call api when pressing button.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      This would require to use WP Ajax that incorporates JavaScript. Then an API request can be sent.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      There is a simple implementation here stackoverflow.com/a/52352365

    • @niltonguerra3213
      @niltonguerra3213 4 ปีที่แล้ว

      @@TechiePress Thank you so much.

  • @francescoscollo2275
    @francescoscollo2275 4 ปีที่แล้ว

    The video is very good . Which plugin do you use?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Thank you. I made this on my own and you can too my rewriting the code I share in this video.

    • @francescoscollo2275
      @francescoscollo2275 4 ปีที่แล้ว

      @@TechiePress i wan to know the previous video

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      th-cam.com/video/saC-7wTpZ_k/w-d-xo.html this is the video you want

    • @francescoscollo2275
      @francescoscollo2275 4 ปีที่แล้ว

      @@TechiePress thanks you so much

    • @francescoscollo2275
      @francescoscollo2275 4 ปีที่แล้ว

      @@TechiePress I don't get to find the plugin Query APIs

  • @faykougioumtzopoulou4883
    @faykougioumtzopoulou4883 3 ปีที่แล้ว

    Hey man very well explained! I'm currently working on a project using the wp_remote_get method to fetch data from an external source (not a static json file). Everything works great. What i was wondering is how can i schedule the request (or trigger it when the data from the external source changes) to happen let's just say 3 times a day since the data that i'm fetching from the external source are changing within the day? If you have any suggestions or you can point me to any direction i would really appreciated. Thank you very much!

    • @sajjadahmad8254
      @sajjadahmad8254 3 ปีที่แล้ว

      hi FK. I am also working on a project like yours. could you share the Code would be a great help as I am getting issues with my code and a very beginner? Thanks.

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว +1

      You can use the wp_schedule_events functionality. developer.wordpress.org/reference/functions/wp_schedule_event/ Let me know how that goes

    • @faykougioumtzopoulou4883
      @faykougioumtzopoulou4883 3 ปีที่แล้ว

      @@TechiePress thank you i'll check it out!

  • @abollyhost9199
    @abollyhost9199 4 ปีที่แล้ว

    please can you help with this i was trying to pull a cardona pool stat from a site to display on another site pleae reply me soon so i can work on it sir

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      What do you mean?

    • @abollyhost9199
      @abollyhost9199 4 ปีที่แล้ว

      @@TechiePress can you give me your contact email so i can explain for you sir

    • @abollyhost9199
      @abollyhost9199 4 ปีที่แล้ว

      @@TechiePress i mean i want to pull a cardona pool stat from pooltool.io to my website blackstartpool.com with API please can you help with this sir

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Web@mediauganda.com

  • @sajjadahmad8254
    @sajjadahmad8254 3 ปีที่แล้ว

    thanks so much for the video after many searches found what I need about WordPress APIs. kindly can you provide the updated code? the code link you provided is of your other video Thanks.

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      I am working on that. I shared a start point for one to follow along as they build

    • @sajjadahmad8254
      @sajjadahmad8254 3 ปีที่แล้ว

      @@TechiePress thank you so much i have done that my self following your tutorial.

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      Do you mind making a PR to GitHub or sharing the code?

    • @sajjadahmad8254
      @sajjadahmad8254 3 ปีที่แล้ว

      @@TechiePress
      // If this file is access directly, abort!!!
      defined( 'ABSPATH' ) or die( 'Unauthorized Access' );
      add_shortcode( 'external_data', 'callback_function_name' );
      function callback_function_name() {

      $url = 'put your Url here';
      $arguments = array(
      'method' => 'GET'
      );
      $response = wp_remote_get( $url, $arguments );
      if ( is_wp_error( $response ) ) {
      $error_message = $response->get_error_message();
      return "Something went wrong: $error_message";
      } else {
      // echo '';
      // var_dump( wp_remote_retrieve_body( $response ) );
      // echo '';
      $results = json_decode ( wp_remote_retrieve_body( $response) );

      $html = '';
      $html .= '';
      $html .= '';
      $html .= 'name';
      $html .= 'city';
      // $html .= 'email';
      // $html .= 'address';
      $html .= '';
      foreach ($results as $result) {
      $html .= '';
      $html .= '' . $result->name . '';
      $html .= '' . $result->city . '';
      // $html .= '' . $result->email . '';
      // $html .= '' . $result->address . '';
      $html .= '';
      }
      $html .= '';
      return $html;
      }
      }

  • @nitins5923
    @nitins5923 2 ปีที่แล้ว

    How to pass authorization token

    • @TechiePress
      @TechiePress  2 ปีที่แล้ว

      If you watch this video th-cam.com/video/BmuroyvcRVs/w-d-xo.html or th-cam.com/video/jOo2Fe38Xuc/w-d-xo.html shows you how to pass some extra variables to the API like username and passwords.

  • @amarsoumir6831
    @amarsoumir6831 4 ปีที่แล้ว +1

    hi brother this is a great tutorial , can you give us the page php code please

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Hello, sorry I didn’t keep a copy of the code but I will for future videos.

    • @nirzaripatel9405
      @nirzaripatel9405 3 ปีที่แล้ว

      @@TechiePress I need the page php code brother. Can you please provide me. Thanks

  • @mulkproject687
    @mulkproject687 4 ปีที่แล้ว

    bro this video rely help me a lot, can make request? can u create video same process but display data to CPT with custom field

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Check this series. th-cam.com/play/PLNqG1qGUllk0NSTrNF2xa1zHNzMi3M7su.html Videos 7-10 They have what you need. Let me know if that helps.

    • @mulkproject687
      @mulkproject687 4 ปีที่แล้ว

      @@TechiePress still bit of confuse bro. i saw it earlier 7-10 i can''t connect the ACF hehe i got lost

    • @mulkproject687
      @mulkproject687 4 ปีที่แล้ว

      @@TechiePress here is my code bro maybe u can check and see which part i got wrong hehehe
      $json_request = wp_remote_get( 'jsonplaceholder.typicode.com/users');
      if( is_wp_error( $json_request ) ) {
      return false;
      }
      $json_body = wp_remote_retrieve_body( $json_request );
      $json_data = json_decode( $json_body );
      // Create the new post and populate the fields
      foreach( $json_data as $item ) {
      $name = $item->name;
      $username = $item->username;
      $email = $item->email;
      $new_post = array(
      'field_5f22e4314cb8e' => $name,
      'field_5f22e43a4cb8f' => $username,
      'field_5f22e4424cb90' => $email,
      'post_type' => 'demos'
      );
      $post_id = post_exists( $email );
      if (!$post_id) {
      $post_id = wp_insert_post($new_post);
      }
      }

    • @mulkproject687
      @mulkproject687 4 ปีที่แล้ว

      same file plugin api-query
      do_action('save_post','callback_function_name');

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      If you use ACF, you need to use the ACF methods they share like update_field(). You need to read ACF documentation

  • @tradinghackings
    @tradinghackings 4 ปีที่แล้ว

    Thanks so much for the video, I try following you but I encountered an error at the ending please I will be so happy if you help me solve the error

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Thanks for watching, what error do you get?

    • @tradinghackings
      @tradinghackings 4 ปีที่แล้ว

      I made an api call like u did in the tutorial It worked fine but at the stage of #foreach loop I got an error saying(warning: A non-numeric value encountered in.... please I will so much appreciate if you help me solve that error

  • @alcantaraallan
    @alcantaraallan 4 ปีที่แล้ว

    thank you again for this tutorial, when i check the result im getting this "Trying to get property 'id' of non-object"

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Can you preview or var_dump the Object you are getting and see the properties that are available. Chekc to see if “id” is available.

    • @alcantaraallan
      @alcantaraallan 4 ปีที่แล้ว

      @@TechiePress hello, yes I can var_dump and there is an ID as well.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว +1

      Can you share those few lines of code and how you are exposing the data? You might need to use $data->ID or $data[‘id’]

    • @alcantaraallan
      @alcantaraallan 4 ปีที่แล้ว

      just to share it with you here is the output prnt.sc/ts78te for the var_dump

    • @alcantaraallan
      @alcantaraallan 4 ปีที่แล้ว

      this is the output prnt.sc/ts7fkg

  • @sharayubonde416
    @sharayubonde416 4 ปีที่แล้ว

    Thanks ... Looking for this kind of video

    • @sharayubonde416
      @sharayubonde416 4 ปีที่แล้ว

      Can u please tell how to integrate coin currency api in wordpress

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      That’s a very open end challenge. The same method can work for you. Do you want to make a payment gateway?

  • @abdurrahmansefer2548
    @abdurrahmansefer2548 3 ปีที่แล้ว +1

    thanks

  • @filipginder6118
    @filipginder6118 4 ปีที่แล้ว

    Great video. Can only an explanation of where exactly it is you fail external-api-shortcode.php

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I am sorry I do not fully understand your question. Can you rephrase it?

    • @filipginder6118
      @filipginder6118 4 ปีที่แล้ว

      @@TechiePress This is the first time I'm making something like this, so it's not clear to me whether you're making this as a new plugin or putting this file somewhere else.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Oh! I see. I usually use plugins for handling things with data. You can watch this short video to get more explanations th-cam.com/video/9LtXEMRNln8/w-d-xo.html

    • @filipginder6118
      @filipginder6118 4 ปีที่แล้ว

      @@TechiePress Thank you, after this video everything is much clearer to me, I was confused whether it is a plugin or not

  • @ryanadikara6354
    @ryanadikara6354 4 ปีที่แล้ว +1

    cool

  • @manish_mishra124
    @manish_mishra124 ปีที่แล้ว

    Nice content but your videos are not coming in series

  • @GoTechUG
    @GoTechUG 4 ปีที่แล้ว

    I can't like this tutorial more.. Especially that part you show adding the extension of the table tittle via shortcode.

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      Shortcodes are very powerful. They paved the way for what you see as blocks in modern WP today.

  • @webberscloud3639
    @webberscloud3639 3 ปีที่แล้ว

    really awesome tutorial..but i have a bit complex json data.. like -
    {
    "results": {
    "data": {
    "team": [
    {
    "name": "Arizona",
    "nickname": "Cardinals",
    "display_name": "Arizona",
    "id": "45",
    "conference": "National Football Conference",
    "division": "West"
    },
    {
    "name": "Atlanta",
    "nickname": "Falcons",
    "display_name": "Atlanta",
    "id": "49",
    "conference": "National Football Conference",
    "division": "South"
    },
    {
    "name": "Baltimore",
    "nickname": "Ravens",
    "display_name": "Baltimore",
    "id": "48",
    "conference": "American Football Conference",
    "division": "North"
    },
    {
    "name": "Buffalo",
    "nickname": "Bills",
    "display_name": "Buffalo",
    "id": "53",
    "conference": "American Football Conference",
    "division": "East"
    },
    {
    "name": "Carolina",
    "nickname": "Panthers",
    "display_name": "Carolina",
    "id": "59",
    "conference": "National Football Conference",
    "division": "South"
    },
    {
    "name": "Chicago",
    "nickname": "Bears",
    "display_name": "Chicago",
    "id": "43",
    "conference": "National Football Conference",
    "division": "North"
    },
    {
    "name": "Cincinnati",
    "nickname": "Bengals",
    "display_name": "Cincinnati",
    "id": "41",
    "conference": "American Football Conference",
    "division": "North"
    },
    {
    "name": "Cleveland",
    "nickname": "Browns",
    "display_name": "Cleveland",
    "id": "60",
    "conference": "American Football Conference",
    "division": "North"
    },
    {
    "name": "Dallas",
    "nickname": "Cowboys",
    "display_name": "Dallas",
    "id": "56",
    "conference": "National Football Conference",
    "division": "East"
    },
    {
    "name": "Denver",
    "nickname": "Broncos",
    "display_name": "Denver",
    "id": "61",
    "conference": "American Football Conference",
    "division": "West"
    },
    {
    "name": "Detroit",
    "nickname": "Lions",
    "display_name": "Detroit",
    "id": "50",
    "conference": "National Football Conference",
    "division": "North"
    },
    {
    "name": "Green Bay",
    "nickname": "Packers",
    "display_name": "Green Bay",
    "id": "39",
    "conference": "National Football Conference",
    "division": "North"
    },
    {
    "name": "Houston",
    "nickname": "Texans",
    "display_name": "Houston",
    "id": "42",
    "conference": "American Football Conference",
    "division": "South"
    },
    {
    "name": "Indianapolis",
    "nickname": "Colts",
    "display_name": "Indianapolis",
    "id": "67",
    "conference": "American Football Conference",
    "division": "South"
    },
    {
    "name": "Jacksonville",
    "nickname": "Jaguars",
    "display_name": "Jacksonville",
    "id": "69",
    "conference": "American Football Conference",
    "division": "South"
    },
    {
    "name": "Kansas City",
    "nickname": "Chiefs",
    "display_name": "Kansas City",
    "id": "63",
    "conference": "American Football Conference",
    "division": "West"
    },
    {
    "name": "LA Chargers",
    "nickname": "Chargers",
    "display_name": "Los Angeles",
    "id": "47",
    "conference": "American Football Conference",
    "division": "West"
    },
    {
    "name": "LA Rams",
    "nickname": "Rams",
    "display_name": "Los Angeles",
    "id": "64",
    "conference": "National Football Conference",
    "division": "West"
    },
    {
    "name": "Las Vegas",
    "nickname": "Raiders",
    "display_name": "Las Vegas",
    "id": "66",
    "conference": "American Football Conference",
    "division": "West"
    },
    {
    "name": "Miami",
    "nickname": "Dolphins",
    "display_name": "Miami",
    "id": "65",
    "conference": "American Football Conference",
    "division": "East"
    },
    {
    "name": "Minnesota",
    "nickname": "Vikings",
    "display_name": "Minnesota",
    "id": "57",
    "conference": "National Football Conference",
    "division": "North"
    },
    {
    "name": "NY Giants",
    "nickname": "Giants",
    "display_name": "New York",
    "id": "55",
    "conference": "National Football Conference",
    "division": "East"
    },
    {
    "name": "NY Jets",
    "nickname": "Jets",
    "display_name": "New York",
    "id": "54",
    "conference": "American Football Conference",
    "division": "East"
    },
    {
    "name": "New England",
    "nickname": "Patriots",
    "display_name": "New England",
    "id": "44",
    "conference": "American Football Conference",
    "division": "East"
    },
    {
    "name": "New Orleans",
    "nickname": "Saints",
    "display_name": "New Orleans",
    "id": "70",
    "conference": "National Football Conference",
    "division": "South"
    },
    {
    "name": "Philadelphia",
    "nickname": "Eagles",
    "display_name": "Philadelphia",
    "id": "40",
    "conference": "National Football Conference",
    "division": "East"
    },
    {
    "name": "Pittsburgh",
    "nickname": "Steelers",
    "display_name": "Pittsburgh",
    "id": "46",
    "conference": "American Football Conference",
    "division": "North"
    },
    {
    "name": "San Francisco",
    "nickname": "49ers",
    "display_name": "San Francisco",
    "id": "58",
    "conference": "National Football Conference",
    "division": "West"
    },
    {
    "name": "Seattle",
    "nickname": "Seahawks",
    "display_name": "Seattle",
    "id": "52",
    "conference": "National Football Conference",
    "division": "West"
    },
    {
    "name": "Tampa Bay",
    "nickname": "Buccaneers",
    "display_name": "Tampa Bay",
    "id": "68",
    "conference": "National Football Conference",
    "division": "South"
    },
    {
    "name": "Tennessee",
    "nickname": "Titans",
    "display_name": "Tennessee",
    "id": "62",
    "conference": "American Football Conference",
    "division": "South"
    },
    {
    "name": "Washington",
    "nickname": "Football Team",
    "display_name": "Washington",
    "id": "51",
    "conference": "National Football Conference",
    "division": "East"
    }
    ]
    },
    "columns": {
    "name": "name",
    "nickname": "NickName",
    "display_name": "display name",
    "id": "id",
    "conference": "conference",
    "division": "division"
    }
    },
    "hash": "a4e87214bbbc9fa71af4270c1bb5aa6a"
    }
    once i var dump i am getting it.. but when i am using this-
    foreach ($results as $result) {

    $html .= '';
    $html .= '' . $result->data->team->name.'';
    $html .= '';
    }
    its giving error... can you tell me where i am doing wrong?

    • @TechiePress
      @TechiePress  3 ปีที่แล้ว

      You need to loop the team. First you need to go levels deep to through the $results->data-team. Then loop that

  • @vkwblab4396
    @vkwblab4396 ปีที่แล้ว

    How to add external api data like
    : {"data":[{"name":"Adlam","script":"Adlm","family":"African","type":"alphabet","direction":"rtl"},

  • @sagarmondal9579
    @sagarmondal9579 ปีที่แล้ว

    Would you be interested for paid projects? Please share your mail

    • @TechiePress
      @TechiePress  ปีที่แล้ว

      Unfortunately, I am not taking on new work currently. But you can try codeable.io for good WordPress developers