WordPress Custom Query - Part 01 - Basics

  Рет қаралды 70,369

Watch and Learn

Watch and Learn

Күн бұрын

Пікірлер: 105
@RhyandMarketingGroup
@RhyandMarketingGroup 4 жыл бұрын
Ivan, thank you for all the value you share. While this series is pushing 5 years old, it still holds a ton of good info. So much so it inspired me to write a plugin where you can access WP_Query from Javascript. Keep up the good work!
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
Yeah, well WP_Query hasn't changed much in five years, and I think it will still be valid for years to come. But more importantly, care to share that plugin 😃 ? I wanna see what it does.
@teodorobasta3096
@teodorobasta3096 5 жыл бұрын
What a great webmaster, what a great teacher, what a great Tutorial, what a Bad is my English! A Big thanks from Italy.......
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
Haha. Thanks :)
@mattmcalexander2108
@mattmcalexander2108 7 жыл бұрын
Dude, this playlist was so awesome. You made it so easy to understand, thank you thank you!
@toano8855
@toano8855 4 жыл бұрын
Thank for your turtorial Bro
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
You are welcome. Thanks for watching :)
@olyahamedbappy
@olyahamedbappy 4 жыл бұрын
Great Great Great
@MaurcioJesus
@MaurcioJesus 3 жыл бұрын
Thank you so much. You passed the knowledge clearly, directly and simply. A simply wonderful class.
@WatchandLearnTutorials
@WatchandLearnTutorials 3 жыл бұрын
Thanks, glad you like it 😀
@ominhquan6349
@ominhquan6349 4 жыл бұрын
This is the best tut i've seen, thank you so much!
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
Thanks 😃 , and thank you for watching.
@umaskofficial
@umaskofficial 7 жыл бұрын
Really nice videos i understand wp query basic, please keep it up about new things like that, good work
@Ziggazaaaaa
@Ziggazaaaaa 7 жыл бұрын
privet Ivan!! ... i live in mexico .. belorus... love your explanation... finally found something that makes sence to explain about WP theme building... gj
@creedsd1
@creedsd1 4 жыл бұрын
Dear Sir, I greatly appreciate the time and effort you put into this video (episode 1). You are very clear and patient. I look forward to viewing all of the episodes regarding WP_Query. Thank you.
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
Glad you like the videos and thanks for watching :)
@MegaOnerb
@MegaOnerb 5 жыл бұрын
I love the way you explain wordpress query.
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
Thanks. Glad you like it ;)
@ritaravinsky8262
@ritaravinsky8262 4 жыл бұрын
That's what i've been searching for! Thanks a lot
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
You are welcome ;)
@mohamedamarfilali
@mohamedamarfilali 7 жыл бұрын
Very usefull and wonderfully explained thank you Ivan
@soumisen6325
@soumisen6325 6 жыл бұрын
Videos are really awesome. Best series on wordpress :) Kudos
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
Thanks :), glad you like the tutorials :) .
@andcaru
@andcaru 4 жыл бұрын
Thank you so much.
@hamzajalda5702
@hamzajalda5702 4 жыл бұрын
great, you helped me
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
I'm glad I did ;)
@philbx1
@philbx1 8 жыл бұрын
Nice work again Ivan. Love your commentary style!
@WatchandLearnTutorials
@WatchandLearnTutorials 8 жыл бұрын
+Phil B Glad you like it :)
@moldovandorin6187
@moldovandorin6187 5 жыл бұрын
you are really fantastic...thank you
@bambinoesu
@bambinoesu 3 жыл бұрын
perfect
@notuzzi
@notuzzi 3 жыл бұрын
Your videos are absolutely amazing I was looking forward for this kind of videos no one is making this kind of content oh my god these meta queries custom queries have made my day make more videos like these explaining woocommerce and do you have a Patreon so people can donate you ?
@WatchandLearnTutorials
@WatchandLearnTutorials 3 жыл бұрын
Glad you like the videos, although, they are very old 😀 I have a patreon page yes: www.patreon.com/watchlearn
@pradeepdwivedy
@pradeepdwivedy 6 жыл бұрын
great solved my problem
@premier69
@premier69 8 жыл бұрын
Thank you very much for your hard work!
@massart09
@massart09 7 жыл бұрын
Thanks man. You just made another subscriber.
@azewine4171
@azewine4171 6 жыл бұрын
I second that,
@ЯковЯврач
@ЯковЯврач 5 жыл бұрын
nice))
@edmundodelgado890
@edmundodelgado890 5 жыл бұрын
My English is not Good, but I understand you better than others teachers in spanish. ¿Do you have a Completely course of php or wordpress?
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
Glad you like the video :). I don't have videos specifically about WP and PHP, no, sorry.
@edmundodelgado890
@edmundodelgado890 5 жыл бұрын
@@WatchandLearnTutorials You Should, I'll gladly pay for them if you create a course :D
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
@@edmundodelgado890 Glad to hear it :) , however, I'm not really interested in WP at the moment.
@losanm
@losanm 5 жыл бұрын
Thank you so much!!!!!!
@informationnet
@informationnet 6 жыл бұрын
Thank u very much.
@tanvirali5394
@tanvirali5394 7 жыл бұрын
thumbs up sir
@andreasmou6539
@andreasmou6539 5 жыл бұрын
Nice videos dude , this is the heart of Wordpress ! Thank you , can i ask how have you saved on your editor some functions like ( the loop ) and it suggest you automatically when you start typing ? This will help a lot with my workflow !
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
Glad you like the videos :) .. so that was probably WordPress plugin for Sublime, and maybe also custom snippet I made, can't remember exactly because it was a long time ago. But you have very good WordPress support for VS Code, Atom, PHP Storm. Just search in their respective plugin directories. Also all of the editors have some sort of snippet system (they are called Live Templates in PHP Storm for some reason). Hope this helps, I'm not using Sublime anymore, so I can't share exact plugins and snippets I had back then.
@ВасильВласюк-ь8т
@ВасильВласюк-ь8т Жыл бұрын
Hey. Great tutorial. What theme do you use for your code editor? Thanks
@WatchandLearnTutorials
@WatchandLearnTutorials Жыл бұрын
No idea, this was recorded 7 years ago 😄
@dusanaleksic
@dusanaleksic 4 жыл бұрын
svaka cast, Ivke!
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
Fala 😁
@manimanito85
@manimanito85 8 жыл бұрын
Nice tutorial man, what kind of theme did you use?
@MauFerrusca
@MauFerrusca 8 жыл бұрын
Thank you for this very informative tutorial. How did you set up the loop autocomplete @ 3:50?
@WatchandLearnTutorials
@WatchandLearnTutorials 8 жыл бұрын
I think it's either WP plugin for sublime, or I've setup code snippet. Can't remember now.
@MauFerrusca
@MauFerrusca 8 жыл бұрын
I suppose it's a snippet. Thanks for your reply!
@SuperSamsosa
@SuperSamsosa 7 жыл бұрын
At 18:29 min how do you deduct that $dontshowthisguy = $post->Id is 1 , where is that stated ?
@WatchandLearnTutorials
@WatchandLearnTutorials 7 жыл бұрын
You can check that in the admin by hovering over a post, in the bottom left of Chrome there will be the ID of the post in the URL. But this was just an example I could have used any ID there.
@majaliwawilfred447
@majaliwawilfred447 6 жыл бұрын
I think, since he is only looping once, as in he is only showing one post as the featured post, postID will always be 1 which is the id of the post Hello World as he demonstrated when he hovered over the post in the admin dashboard. Any thoughts?
@majaliwawilfred447
@majaliwawilfred447 6 жыл бұрын
Hola. In love with this tutorial already. Question is... Why exactly is postID == 1? How does that happen?
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
Hi, glad you like the tutorials. As for your question - every time you create a post WP assigns an ID to it. That is why the first post has an ID of 1.
@FreelancerSayedul
@FreelancerSayedul 6 жыл бұрын
nice
@MohammedAlNshawaty
@MohammedAlNshawaty 6 жыл бұрын
You are awesome
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
Thanks :) ... I'm blushing :)
@rabinawale4526
@rabinawale4526 5 жыл бұрын
How can we do if their 2 featured post and we dont wanna show it in other loop without using offset and using dyanimc value in post not in
@babarharoon1234
@babarharoon1234 7 жыл бұрын
please sir make a series ajaify wordpress site like page categories post and custom post type custom field and also filter and ajax page swap left to right or right to left this is if you can do whole new learner and ajax interested will be very glad of your work please please sir accept this challenge and bring something new animation with ajax in WordPress and your teaching style very very best in all very simple and in detail thanks regards babar haroon from pakistan
@WatchandLearnTutorials
@WatchandLearnTutorials 7 жыл бұрын
Sorry Babar but I don't see myself doing new WordPress tutorials any time soon. Also most of the things you stated here are on KZbin and some of them are even on this channel. So take a look around YT and my channel to find what you need.
@memomemo-uc6pv
@memomemo-uc6pv 5 жыл бұрын
thanx
@yaroslavmuzychenko3165
@yaroslavmuzychenko3165 7 жыл бұрын
My css or scss does not work... Maybe you know why? The container and color not working... Thank you!
@inquiryinquiry3976
@inquiryinquiry3976 2 жыл бұрын
sir is it possible to search the date? Thanks
@thuhuyen2585
@thuhuyen2585 8 жыл бұрын
what is name of the editor that you use for writing code ? I see it is very useful
@WatchandLearnTutorials
@WatchandLearnTutorials 8 жыл бұрын
+Thu Huyen You mean Sublime Text? That's the name of the editor.
@thuhuyen2585
@thuhuyen2585 8 жыл бұрын
+Watch and Learn I've download it, thank you!
@premier69
@premier69 8 жыл бұрын
Try ATOM or BRACKETS of you want a free open source version with massive plugin capabilities.
@jellycoding
@jellycoding 7 жыл бұрын
Atom and Sublime is what I like the most. I don't like brackets. They have a strange setup for the sidebar. People have been complaining about it for over 2 years but they don't care. But I think our great teacher is using MAC and I know MAC-people like Coda from Panic. However Sublime still is what I think most people like.
@markusv3000
@markusv3000 7 жыл бұрын
Thank you.
@thomasmartin7181
@thomasmartin7181 6 жыл бұрын
what php editor are you using?
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
It's Sublime Text. I have a video about it: kzbin.info/www/bejne/qaGndWNvd8uJqM0
@southeastarkweather
@southeastarkweather 6 жыл бұрын
What html editor was that
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
It's Sublime Text. You can check out my setup here: kzbin.info/www/bejne/qaGndWNvd8uJqM0
@normandubois_design
@normandubois_design 8 жыл бұрын
Thanks for the video! Do you Plan to make an Ajax with wordpress tutorial for page loading? I could not find any good one for the frontend:(
@WatchandLearnTutorials
@WatchandLearnTutorials 8 жыл бұрын
+Norman Dubois Maybe I will do that something like that. Maybe with something like Vue.js, it's a good idea. Thanks. Just have to finish this series first.
@normandubois_design
@normandubois_design 8 жыл бұрын
+Watch and Learn cool. Thank you! :)
@normandubois_design
@normandubois_design 8 жыл бұрын
+Watch and Learn I think just the basics doing it with vanilla js/jquery would be nice:)
@zakariyaxaaji9477
@zakariyaxaaji9477 3 жыл бұрын
here you're only displaying the titles, but how can I display both the title, the featured image, and the content of the post? thanks an advance
@WatchandLearnTutorials
@WatchandLearnTutorials 3 жыл бұрын
You would display them just like in the normal WordPress loop. For example you would display the content by just doing ... Featured image etc. Think of this like a normal WP loop that is returning data that you need, and not the default data that would be displayed on that theme file.
@zakariyaxaaji9477
@zakariyaxaaji9477 3 жыл бұрын
@@WatchandLearnTutorials ok thank you
@ChandraTech52
@ChandraTech52 8 жыл бұрын
Thank thank :)
@arminsehic6963
@arminsehic6963 4 жыл бұрын
Pozdrav Ivane. Je li ovo i dalje relevantno?
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
Pozdrav Armine, WordPress je jako backwards compatible, tak da za čudo čak i nakon 5 godina cijela ova serija videa je totalno relevantna.
@arminsehic6963
@arminsehic6963 4 жыл бұрын
@@WatchandLearnTutorials ty
@azureliseraleighchocolatec6832
@azureliseraleighchocolatec6832 6 жыл бұрын
I do not see where you get "$post" in "$post-->ID" or how its object reference is determined.
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
The $post is an object you get with WP. It should be available on every page, and it contains data about that page. codex.wordpress.org/Function_Reference/$post
@_rahiali
@_rahiali 5 жыл бұрын
What if instead of the_title(); I wanted to grab a woocommerce product attribute and concat it to another attribute be like + blanket which will out put something like "warm red blanket"
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
I don't know how this works with WooCommerce. Maybe better ask at Woo commerce forums.
@_rahiali
@_rahiali 5 жыл бұрын
@@WatchandLearnTutorials no problem man, got it and will share a link to solution later.
@md.shehabuddintushar1816
@md.shehabuddintushar1816 6 жыл бұрын
how to show pagination in custom post type
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
Honestly, it can get very complicated. Try using this plugin - wordpress.org/plugins/wp-paginate/ and then use Google to find out how to use it with custom post types.
@MauFerrusca
@MauFerrusca 8 жыл бұрын
If anyone else is wondering about the Sublime Text theme viewed here: www.bypeople.com/sublime-text-3-material-design-theme/
@MrNekoNeko11
@MrNekoNeko11 6 жыл бұрын
Is this still valid in 2018?
@WatchandLearnTutorials
@WatchandLearnTutorials 6 жыл бұрын
I think it should be. WordPress is painfully backwards compatible :)
@dontbeafraid5313
@dontbeafraid5313 5 жыл бұрын
Hi, can you help me with an urgent project similar to this. I am willing to pay. Thanks
@WatchandLearnTutorials
@WatchandLearnTutorials 5 жыл бұрын
You can ask a question, I will help if I can. But urgent - no, sorry, I have a full time job.
@basutarudo
@basutarudo 4 жыл бұрын
Ай го ту скул братан
@WatchandLearnTutorials
@WatchandLearnTutorials 4 жыл бұрын
I'm not russian.
WordPress Custom Query - Part 02 - Sorting
10:52
Watch and Learn
Рет қаралды 22 М.
WordPress Custom Query - Part 04 - Taxonomy
18:13
Watch and Learn
Рет қаралды 27 М.
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
How To Visually Build WordPress Queries Using Oxygen
12:45
WordPress Pagination Tutorial (Custom Query & Template Integration)
23:52
Custom Queries In WordPress
14:50
WPCasts
Рет қаралды 20 М.
WP_Query | Taxonomy Parameters | WordPress Tutorial
19:02
WordPress Custom Query - Part 07 - Custom Filters
19:30
Watch and Learn
Рет қаралды 31 М.
Custom Database Queries in WordPress | WordPress Tutorials
24:39
Joshua Herbison
Рет қаралды 65 М.
Using the query loop block and the category template
42:14
WordPress
Рет қаралды 4,3 М.
PHP Basics for WordPress - A Beginners Guide to WordPress PHP
1:16:15