WordPress Custom Query - Part 01 - Basics

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

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

  • @RhyandMarketingGroup
    @RhyandMarketingGroup 4 ปีที่แล้ว +3

    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 ปีที่แล้ว +7

    What a great webmaster, what a great teacher, what a great Tutorial, what a Bad is my English! A Big thanks from Italy.......

  • @mattmcalexander2108
    @mattmcalexander2108 7 ปีที่แล้ว +6

    Dude, this playlist was so awesome. You made it so easy to understand, thank you thank you!

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

    Great Great Great

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

    Thank you so much. You passed the knowledge clearly, directly and simply. A simply wonderful class.

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

    Thank for your turtorial Bro

  • @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.

  • @umaskofficial
    @umaskofficial 7 ปีที่แล้ว +2

    Really nice videos i understand wp query basic, please keep it up about new things like that,
    good work

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

    privet Ivan!! ... i live in mexico .. belorus... love your explanation... finally found something that makes sence to explain about WP theme building... gj

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

    This is the best tut i've seen, thank you so much!

  • @MegaOnerb
    @MegaOnerb 5 ปีที่แล้ว

    I love the way you explain wordpress query.

  • @ritaravinsky8262
    @ritaravinsky8262 4 ปีที่แล้ว +3

    That's what i've been searching for! Thanks a lot

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

    Very usefull and wonderfully explained thank you Ivan

  • @philbx1
    @philbx1 8 ปีที่แล้ว +3

    Nice work again Ivan.
    Love your commentary style!

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

    Videos are really awesome. Best series on wordpress :) Kudos

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

    Thank you so much.

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

    you are really fantastic...thank you

  • @ВасильВласюк-ь8т
    @ВасильВласюк-ь8т ปีที่แล้ว

    Hey. Great tutorial. What theme do you use for your code editor? Thanks

  • @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 ปีที่แล้ว +1

      Glad you like the videos, although, they are very old 😀 I have a patreon page yes: www.patreon.com/watchlearn

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

    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 ปีที่แล้ว +1

      @@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.

  • @tanvirali5394
    @tanvirali5394 7 ปีที่แล้ว

    thumbs up sir

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

    svaka cast, Ivke!

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

    perfect

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

    great solved my problem

  • @massart09
    @massart09 7 ปีที่แล้ว +2

    Thanks man. You just made another subscriber.

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

    great, you helped me

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

    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  4 ปีที่แล้ว +1

      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.

  • @ЯковЯврач
    @ЯковЯврач 5 ปีที่แล้ว +1

    nice))

  • @premier69
    @premier69 8 ปีที่แล้ว +2

    Thank you very much for your hard work!

  • @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!

  • @manimanito85
    @manimanito85 8 ปีที่แล้ว

    Nice tutorial man, what kind of theme did you use?

  • @majaliwawilfred447
    @majaliwawilfred447 6 ปีที่แล้ว

    Hola. In love with this tutorial already. Question is... Why exactly is postID == 1? How does that happen?

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

      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.

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

    Thank you so much!!!!!!

  • @FreelancerSayedul
    @FreelancerSayedul 6 ปีที่แล้ว

    nice

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

    Thank u very much.

  • @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 TH-cam and some of them are even on this channel. So take a look around YT and my channel to find what you need.

  • @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 ปีที่แล้ว +2

      +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:)

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

    what is name of the editor that you use for writing code ? I see it is very useful

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

      +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 ปีที่แล้ว +1

      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.

  • @MohammedAlNshawaty
    @MohammedAlNshawaty 5 ปีที่แล้ว

    You are awesome

  • @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?

  • @memomemo-uc6pv
    @memomemo-uc6pv 5 ปีที่แล้ว +1

    thanx

  • @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

  • @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 ปีที่แล้ว +1

      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

  • @markusv3000
    @markusv3000 7 ปีที่แล้ว

    Thank you.

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

    sir is it possible to search the date? Thanks

  • @yaroslavmuzychenko3165
    @yaroslavmuzychenko3165 7 ปีที่แล้ว

    My css or scss does not work... Maybe you know why?
    The container and color not working...
    Thank you!

  • @thomasmartin7181
    @thomasmartin7181 6 ปีที่แล้ว

    what php editor are you using?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  6 ปีที่แล้ว

      It's Sublime Text. I have a video about it: th-cam.com/video/spDD09BfVrk/w-d-xo.html

  • @ChandraTech52
    @ChandraTech52 8 ปีที่แล้ว

    Thank thank :)

  • @southeastarkweather
    @southeastarkweather 6 ปีที่แล้ว

    What html editor was that

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  6 ปีที่แล้ว

      It's Sublime Text. You can check out my setup here: th-cam.com/video/spDD09BfVrk/w-d-xo.html

  • @_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 ปีที่แล้ว +1

      @@WatchandLearnTutorials no problem man, got it and will share a link to solution later.

  • @md.shehabuddintushar1816
    @md.shehabuddintushar1816 6 ปีที่แล้ว +1

    how to show pagination in custom post type

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

      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.

  • @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

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

    Pozdrav Ivane. Je li ovo i dalje relevantno?

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

      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 3 ปีที่แล้ว

      @@WatchandLearnTutorials ty

  • @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.

  • @MrNekoNeko11
    @MrNekoNeko11 6 ปีที่แล้ว

    Is this still valid in 2018?

    • @WatchandLearnTutorials
      @WatchandLearnTutorials  6 ปีที่แล้ว

      I think it should be. WordPress is painfully backwards compatible :)

  • @MauFerrusca
    @MauFerrusca 8 ปีที่แล้ว

    If anyone else is wondering about the Sublime Text theme viewed here: www.bypeople.com/sublime-text-3-material-design-theme/

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

    Ай го ту скул братан