AJAX in WordPress using admin-ajax.php

  Рет қаралды 39,712

Zac Gordon

Zac Gordon

5 жыл бұрын

In this video from Zac Gordon's short course on AJAX in WordPress, Zac introduces how AJAX in WordPress works.
Course
javascriptforwp.com/product/a...
Source Code
github.com/zgordon/wordpress-...

Пікірлер: 34
@seniorvikita3802
@seniorvikita3802 4 жыл бұрын
So I look around the web but eventually come back here. This man is the best.
@sashasasha652
@sashasasha652 5 жыл бұрын
Wow perfect! I'm recently thought, that finally, I've started understand how does AJAX works in WordPress after I've done some small features in different projects. Dude! Excellent explanation, great job!, but now I h8 u!)
@edhead76
@edhead76 5 жыл бұрын
Dude, thank you! I was given a project that has been hell. lol. This was very clear and easy to follow.
@iwanwilaga
@iwanwilaga 5 жыл бұрын
Nice teaches, thank you, Zac (bro:). Also quite adequate cultural background is being sported behind ya! :D Keep going!
@hello_mandi
@hello_mandi 5 жыл бұрын
Dude you speak so fast (compared to other tutorials) I tought the video was at 2 velocity, that's amazing. Thanks for the video!
@Edu4Dev
@Edu4Dev 2 жыл бұрын
Djembé, coolest percussion
@GuptaTreePoint
@GuptaTreePoint 4 жыл бұрын
Where should I create hook and ajax function please explain file also bcz I am new in WordPress
@guadalupeornelas1527
@guadalupeornelas1527 4 жыл бұрын
Hey there! Excelent tutorial, it worked for me. I have one question. Is it possible to print the result into the theme (php) with echo or something like that?
@ahmedmusawir
@ahmedmusawir 4 жыл бұрын
Great stuff! Would be better if your face wasn't blocking the code ...
@aurelianspodarec2629
@aurelianspodarec2629 4 жыл бұрын
Maybe a bit smaller would be fine
@kornelijekovac9793
@kornelijekovac9793 4 жыл бұрын
The second ajax call sends me to wp-admin/admin-ajax.php page. How to redirect to original page (where from 1st ajax call was sent) and make 2nd ajax call from there with new variables?
@cinthia7617
@cinthia7617 5 жыл бұрын
I'm having a Status Code: 400 Bad Request. What could be wrong?
@linkup901ify
@linkup901ify 4 жыл бұрын
Why doesn't WordPress have all of this setup by default? Even when I've used JS editors plugins I kept running into problems trying to get an ID to fade in/out and update/change content...never quite worked hence I'm here trying to figure out why. I'm using Elementor so that could be causing problems.
@superjaykramer
@superjaykramer 3 жыл бұрын
where do you put your javascripts?
@damindadineshimaduwagamage9044
@damindadineshimaduwagamage9044 Жыл бұрын
can you put the code that goes on the plugin in functions.php file ?
@spectreross3693
@spectreross3693 5 жыл бұрын
just a question where should i put the localize_script?
@SalmanRavoof
@SalmanRavoof 5 жыл бұрын
@Michael Lau He has a separate video on how to do it. Look it up. kzfaq.info/get/bejne/pdOEqKWGuJe4pqM.html
@manticore978
@manticore978 4 жыл бұрын
where is the next video with the examples?
@kristijanluksic2341
@kristijanluksic2341 3 жыл бұрын
This video would have so much more value if you demonstrated it with a simple example.
@edhead76
@edhead76 5 жыл бұрын
what font do you use when you code? I want that "f" lol
@ZacGordon
@ZacGordon 5 жыл бұрын
Dank Mono :) javascriptforwp.com/vscode-settings/
@samybaxy
@samybaxy 4 жыл бұрын
I also wanted that font! I'm coming for ya Dank Mono 🤪
@studywithrobin2715
@studywithrobin2715 3 жыл бұрын
Please consider adding captions for the hearing impaired. :)
@muhammadfarooqi
@muhammadfarooqi 3 жыл бұрын
did somebody try moving his picture by dragging on screen???
@kottkottsan
@kottkottsan 5 жыл бұрын
Awesome video, smooth explaination~ I used >url: ajaxurl< before since it's ougth to be the same (well, preset). Is it? :P Helped big, thx again!
@DavidLeighAlsace
@DavidLeighAlsace 5 жыл бұрын
I believe it's preset if you're logged in (?and in admin?), but not if you're logged out.
@Moreno6000
@Moreno6000 2 жыл бұрын
I totally do not understand what i need to put into my url like i have been trying this for serval months and it still does not work. I followed 1000 tutorials they all say the same but no results
@tubebility
@tubebility 3 жыл бұрын
I see! 🤔
@jimderonde8155
@jimderonde8155 5 жыл бұрын
Two questions: Why address the source code in form of a plugin (wouldn't it be better to use without plugins)? Why don't you actually show the functionality in this video (getting errors when I implement your code in clean WP install)? Unfortunately this is not a method that can be easily implemented within every WP install ;(
@ZacGordon
@ZacGordon 5 жыл бұрын
Did you try using the code in the repo linked from the video? AJAX should be something you can add to any WordPress plugin or theme :)
@KailashKumar-cy1yz
@KailashKumar-cy1yz 3 жыл бұрын
Hii For the AJAX filter for blog post and custom post time check this plugin: wordpress.org/plugins/category-ajax-filter/
@tagfat
@tagfat 4 жыл бұрын
Yes! Always start a guide or a tutorial with a four minute technical rambling with as many different concepts that you can think of. You can then safely explain what you plan to make and what the benefit would be. If you feel that is too soon, then just go on another rambling about the specific code that you want to use.
@tagfat
@tagfat 4 жыл бұрын
And if you at the end forget to mention why you would do all this, it is not a problem. Most people will have left the video long before that.
@md.hasanmahmud7883
@md.hasanmahmud7883 3 жыл бұрын
I wish I could see the code beyond your face
Form Submit Using Ajax - WordPress Form Ajax
1:09:25
Joshua Herbison
Рет қаралды 18 М.
3 Methods for AJAX in WordPress | Which Method is the Best?
23:09
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 28 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 32 МЛН
How to do AJAX in WordPress correctly (2023)
34:58
Alejandro AO - Software & Ai
Рет қаралды 4,5 М.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 922 М.
How to Use AJAX in Wordpress (admin-ajax.php)
11:42
eInstructor
Рет қаралды 12 М.
HTMX JSON API Example with Wordpress
15:46
Stephen Blum
Рет қаралды 563
Gatsby & WordPress - Pros / Cons w Overview
12:35
Zac Gordon
Рет қаралды 26 М.
How to Use AJAX in PHP and jQuery
19:03
Envato Tuts+
Рет қаралды 20 М.
How to Insert Data Using Ajax jQuery PHP MySQL in WordPress
12:45
eInstructor
Рет қаралды 3,5 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 162 М.
Custom Queries In WordPress
14:50
WPCasts
Рет қаралды 19 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 1,7 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 858 М.
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 19 МЛН
Samsung Galaxy 🔥 #shorts  #trending #youtubeshorts  #shortvideo ujjawal4u
0:10
Ujjawal4u. 120k Views . 4 hours ago
Рет қаралды 6 МЛН