WordPress Custom Loop WP_Query Tutorial

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

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

  • @cervantes01
    @cervantes01 6 лет назад +1

    Love it, can we have more tutorials please!

  • @imfreeash
    @imfreeash 8 лет назад

    I learn a lot from your tutorial, thank you so much

  • @miyaguitube
    @miyaguitube 9 лет назад +18

    the_mindfuck();

  • @AssaultOuStudios
    @AssaultOuStudios 8 лет назад +1

    Just discovered these - they're great. Thanks for the effort.
    Will you by any chance at some point do a tutorial on creating your own widgets?

  • @kiranmulmi7405
    @kiranmulmi7405 7 лет назад

    amazing tutorial

  • @handmadesoapbars
    @handmadesoapbars 9 лет назад

    Can you explain anything about Kirki wp customizer?

  • @wirelessexpo7593
    @wirelessexpo7593 9 лет назад

    How do you compile it to upload online?

  • @ameer23ful
    @ameer23ful 8 лет назад +6

    At the end of this tutorial, I just wanna say;
    Man you are awesome.
    Thank you very much,

  • @ofuezuemlynus2965
    @ofuezuemlynus2965 10 лет назад +5

    you are the best wordpress teacher.....thanks alot

  • @peterc5171
    @peterc5171 10 лет назад +6

    I have looked through a lot of tutorials through the web and here on RUclips. I have to say that your lessons are just about the best I have come across! They are clear, simple, informative, and have a purpose and real world outcome. Please keep going.

  • @prasadchintala2525
    @prasadchintala2525 9 лет назад +14

    The way you are teaching is which is easy to understand, You r Super Bro,Thanq.

    • @LearnWebCode
      @LearnWebCode  9 лет назад +5

      Prasad Chintala Thanks so much! I'm glad the videos are helpful :)

  • @mananazam1800
    @mananazam1800 Год назад +1

    even after 9 year this course is very helpful recommended

  • @sayedakbarali5650
    @sayedakbarali5650 10 лет назад +4

    Thank You Once Again for this Wonder full Series Really Appreciate it

  • @PtxDK
    @PtxDK 8 лет назад +4

    0:20 Just before I started the video i had this feeling. :D

  • @marklozano9898
    @marklozano9898 10 лет назад +1

    Just finished watching all of your videos while following along on coding. Great tutorial, very detailed. Best tutorial of wordpress theme creation that I have watched. Thank you sir! I will surely tell everyone who wants to learn wordpress about your tutorial course here and on udemy. Hope you upload more videos about wordpress! I will surely wait for that. :)
    just one question about this video. you mentioned about the wp_query class and its objects, is that what they call OOP on PHP?
    if it isnt can you please create a tutorial on how to do OOP on PHP, so We can kinda sort and organized the functions through classes? I have watched some videos about that but its not clear, unlike you do. you go step by step and willing to teach and share your knowledge for everybody, not just about getting subscribers and views. your a great teacher. Thank's again! :)

  • @michaeloliver6745
    @michaeloliver6745 8 лет назад +2

    Guy is insane how much he knows!! Will I ever get THAT good!? Awesome stuff!!

  • @BBDDSAL
    @BBDDSAL 9 лет назад +2

    Great tutorial. By far one of the best WP I've encountered on RUclips.

  • @mathijs2100
    @mathijs2100 10 лет назад +2

    Hoping you'll keep going with this series, it's really one of the best teaching I've seen on here.

  • @missyani7003
    @missyani7003 9 лет назад +5

    I OWE MY LIFE TO YOU LOL

  • @asdfkerub
    @asdfkerub 5 лет назад

    One question, What if you are trying to change the category of the wp_query on click? How would you re run and re populate the new wp_query? Thanks!!!!

  • @francescafontana4620
    @francescafontana4620 7 лет назад +1

    I so wanna say thank you!
    I knew literally NOTHING about html, php and css till a week ago and now i actually am able to do sooooo much!!
    Your explanations are perfect and these videos are just so well made.
    thank you again.

  • @alexshooter5176
    @alexshooter5176 4 года назад

    Woooow thanks a lot i was searching the same thing on RUclips and google since One week that how can i show my custom post type data dynamically on wordpress page. I’m using elementor.
    Can i make the short code of same wp_query and can use that short code to the elementor. Shortcode ??

  • @SilverSerpent5
    @SilverSerpent5 9 лет назад

    I'd like to run a loop that will show up on a newly created page called localhost:8888/carsite/funny-cars/ I'm guessing that "front-page.php" is not where the PHP is added. Where would I add the code if I wanted to create a shortcode for that newly created page? Thanks again for the crystal clear tutorial.

  • @johnconnolly9969
    @johnconnolly9969 3 года назад

    I could kiss you right now. I’ve struggled with this for days and you’ve solved it for me. Thank you!

  • @Badboyifier
    @Badboyifier 7 лет назад

    I used your code, deleted the wp_reset_postdata(); and nothing changed, can you explain it briefly why and whats the purpose of it?

  • @prhyme8752
    @prhyme8752 6 лет назад

    If anyone else is having this problem I just want to share it, on the one-half and one-half last div when styling, my style would not change when I just wrote .last in my css as the teacher is doing in this video. I had to type .one-half.last for it to work

  • @ukvaishnav
    @ukvaishnav 7 лет назад

    how many wp_query in a single page? would this affect the performance?

  • @shadab677
    @shadab677 7 лет назад

    sir how to change wp_query post width in 3 to 4 column it displays only 100% size

  • @erichepperlewp
    @erichepperlewp 2 года назад

    3:25 - Empty LOOP skeleton
    7:50 - Recent posts query order by asc

  • @saikatnaskar5047
    @saikatnaskar5047 4 года назад

    sir fatal error , Fatal error: Call to undefined function have_posts() how to solve?

  • @askas0497
    @askas0497 7 лет назад

    thanks for tutorial before, but i have question , how you can make the button look like on the last minutes, can you make tutorial please??

  • @mistermagnus1836
    @mistermagnus1836 10 лет назад +1

    Great tutorials! One question. When using wp-query on categories. Is there a way to allow the user to decide which category to put in the area instead of hardcoding the actual cat id? For instance, using this method, if you put cat=7, only category 7 will show in the area, is there a way to allow the user to change the category in the admin dashboard so if they want lets say "opinion" to show it will, or if they want to change it to "news" they can in admin dashboard? Only question I have, you covered everything else beautifully!!

    • @LearnWebCode
      @LearnWebCode  10 лет назад +2

      Erik Hals Ah, that is a great question. If you don't need to have fine grain control on the way the content is output you could use a widget which allows the end user in the dashboard to change the category. If we want to retain our 100% custom HTML output for the content I would say the best way to let the end user in the dashboard control the chosen category/categories would be to use custom fields. I will cover custom fields in the near future, but in the meantime if you are curious - Google "Advanced Custom Fields" which is a free and amazing plugin for WordPress that makes all sorts of things possible.

  • @benlowrey
    @benlowrey 4 года назад

    You give the clearest explanations I’ve ever heard. You are a really good teacher.

  • @theislamic_messages_media6762
    @theislamic_messages_media6762 4 года назад

    Hi sir the square thumbnail, displays the same image for opinion and for news part

  • @rdagger
    @rdagger 10 лет назад

    Great job. It must have taken a lot of work to put together these tutorials in such a professional manner. Thanks.

  • @DrunkenShinobi
    @DrunkenShinobi 9 лет назад

    Is there a way to prevent copying content from a website with wordpress?

  • @amitmoral
    @amitmoral 6 лет назад

    Great tutorial. How to display custom post loop using get category?

  • @rahilarious
    @rahilarious 4 года назад

    What if we want 2 columns for same loop? (For blog posts/home)

  • @andrewdeacon4384
    @andrewdeacon4384 10 лет назад +1

    Very clear explanation - excellent.

  • @ankitagajjar5880
    @ankitagajjar5880 4 года назад

    thank you, one of the best wordpress tutorial

  • @UsmanAhmed714
    @UsmanAhmed714 2 года назад

    one billion likes for this video and for the author.

  • @charlesloehle7998
    @charlesloehle7998 7 лет назад

    How can i get atom editor to do that thing where you type two matching lines of code at the same time?

  • @mabrarhassan
    @mabrarhassan 8 лет назад +1

    Greatest among the teachers!!!

  • @paulmiller8128
    @paulmiller8128 6 лет назад

    Hi there, Sorry about this but I get to 6.17 mins but get nothing listed on my page.
    This is what I've got (it's in it's own template file):
    //Category loop Second try starts here
    All I get is the // text - help please
    Many thanks
    Bob

  • @ManabuMiwa
    @ManabuMiwa 9 лет назад

    This is exactly what I had wanted to know for a long time. Thanks you for your great video!

  • @256k_
    @256k_ 7 лет назад

    I'm finding myself in a pickle... not sure why this is happening... i'm working on my homepage (front-page.php) i designed it to be a 3 block scrollereach block i show the last few posts from a category.
    I followed your video and i manage to get the outputs properly but i've noticed that the html page doesnt load the rest of the html after the loop!
    Not sure why that is....

  • @isunas16
    @isunas16 8 лет назад

    I hope u feel like u learned something.....YES!I've learned sooooo many things.Thank u so much bro

  • @2010Tane4ka
    @2010Tane4ka 6 лет назад

    I can't Englisch but you make it so understandable. ... It's really cool, I come forward. Thank you so much!!

  • @9849120841
    @9849120841 10 лет назад

    Great tutorials.. Thanx a lot... :)

  • @dsulvadarius
    @dsulvadarius 9 лет назад +1

    i like the way you teach.

  • @servicesinformatique9498
    @servicesinformatique9498 4 года назад

    thank you so much, this what i search :)

  • @pedroantunes7773
    @pedroantunes7773 8 лет назад

    Hey! I know this is an old video but I was wondering... could I create 2 different templates for those 2 columns and then call them with get_template_part? If I have my homepage structured with 6 rows, each with a different loop, wouldn that output a "cleaner" code? Is there any advantage or this just doesnt makes sense? Thanks!

  • @parthcreative
    @parthcreative 6 лет назад

    how can I add pagination in this custom loop

  • @pama4546
    @pama4546 9 лет назад

    Great tuts dude :) ! Would be great if you create one for HTML into WP from scratch? Subscribed,thanks !

  • @J4si3k1992
    @J4si3k1992 8 лет назад

    Nice tutorial, but I have one question. How to make one loop with custom post type (category) and normal category? How to make all in one loop?

  • @AmitGupta-ck5tj
    @AmitGupta-ck5tj 7 лет назад

    sir I am from India , your videos is so good for WordPress developer, sir can you plz make complete videos about WordPress database such that , how to use wp_postmeta value on front end , what is wp_post table field , what is wp_terms in WordPress , how to use WordPress custom database . as well as everything related WordPress database . sir plz make a video plz , your videos is very helpful for WordPress developer . thanks a lot for this video . keep it up sir .

  • @turboromy
    @turboromy 7 лет назад

    I've been trying to do this "from 2 separate category" thing and been very frustrated. Now I got it. Thanks.

  • @PanCakeMixer101
    @PanCakeMixer101 6 лет назад

    does this work on custom post types ?

  • @adriandc9
    @adriandc9 8 лет назад

    Hi Sir, thank you so much for this tutorials and I've learning a lot from this series. One question please, I would like to use wp_query in archive page, what if I would like to query all post from the current category of the archive page that for a specific tag? How can I code that? thank you so much

  • @decorazon2007
    @decorazon2007 7 лет назад

    Hi man.. that very great videos.. thanks a lot... hey i have a doubt: how i can combine 2 post types in one loop... ? example: players and soccer teams .. i wan to show only that players who play in first division teams.. teams category are first and second.. thanks again

  • @alexdewilde934
    @alexdewilde934 6 лет назад

    Damn live the way you speak, sounds passionate and makes it easy to understand. And u where correct about the aha moment. Working with query's is really easy with a good explanation

  •  9 лет назад

    Great tutorial.I like it.tks :*

  • @thomasalston
    @thomasalston 7 лет назад

    Your commentary as you go through the code really is helpful. Looking forward to going through more of your videos. Thanks :)

  • @yashpatel-lu5bm
    @yashpatel-lu5bm 4 года назад

    plzz use "what template i am view" plugin in word press to see the page will called
    like themes/index.php
    themes/page.php
    it will easy for beginner that will page will called

  • @furqanajmal6686
    @furqanajmal6686 4 года назад

    Thank you so much for these wonderful tutorials.
    You are an extraordinary teacher. Thanks again!

  • @ironjebi999
    @ironjebi999 9 лет назад

    extremely useful, thanks for the tutoria. I'm trying to create a list of a specific post category that shows the reatured image on hover, any sugestion of how can I begin?

  • @solomonjeeva2082
    @solomonjeeva2082 8 лет назад

    Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @pratyushranjan277
    @pratyushranjan277 7 лет назад +1

    the tutorial is damn good but which editor you are using??it's also cool..

    • @LearnWebCode
      @LearnWebCode  7 лет назад +3

      Thanks! I'm using "TextMate" in this video, but nowadays I use "Sublime Text" and also recommend Atom by GitHub.

    • @birsingh5388
      @birsingh5388 6 лет назад

      VS Code is also good :)

  • @zambo1511
    @zambo1511 6 лет назад

    You are the ruler God of RUclips.

  • @gamermeshie3180
    @gamermeshie3180 7 лет назад

    Your lessons are better than my instructor. It is easier to understand and absorb, especially for beginners. Keep it up! :)

  • @jyotibarasker2792
    @jyotibarasker2792 7 лет назад

    Sir you had not shared the video for creating content-single and content-page.php in your theme

  • @mohammedadlan
    @mohammedadlan 8 лет назад

    Great instructor
    thanx alot

  • @RecomeR96
    @RecomeR96 7 лет назад

    You're just the best. Saving me. Thank you a lot!

  • @thewebproject
    @thewebproject 9 лет назад

    Thank you so much sir. Your vid lessons are the greatest videos here in youtube. God Bless you sir.

  • @Kodingi
    @Kodingi 9 лет назад

    Good series. Thanks!

  • @sidneysousa3520
    @sidneysousa3520 8 лет назад

    Really helpful tutorial and thanks a lot for it.
    How can I print the category name before printing the title of each post?

  • @allenliu1672
    @allenliu1672 8 лет назад

    Nice text editor, good for identifying php code. Could u tell us the name?

  • @ethantyler7374
    @ethantyler7374 5 лет назад

    its was my AHA moment i can confirm it. been scratching my head on another course where i was having hard time understanding the guy.

  • @orochinagi1111
    @orochinagi1111 8 лет назад

    brilliant..! love the video sizes and your teaching style

  • @againstthesystem83
    @againstthesystem83 9 лет назад

    Extremely useful tutorial. Thanks.

  • @majdalyousfi8867
    @majdalyousfi8867 7 лет назад

    Great tutorial Thanks

  • @arjangap2551
    @arjangap2551 5 лет назад

    Very good tutorial, It explained everythings i needed.

  • @rajathveeramanchala
    @rajathveeramanchala 8 лет назад

    Hello, First of all i would like to thank you a lot for this wordpress theme development playlist. You deserve a good appreciation and respect for helping many beginner developers. I have developed a theme for my own sports website by learning from your tutorials. But i would like to suggest you to add videos on making the theme responsive and on adding page links(useful to see old posts when limited to 5 posts per each page). I have searched from various sources and completed my theme. I`m just suggesting so that it would be helpful for those who follow this playlist in future. Once again THANK YOU !!

  • @RavenaciousTM
    @RavenaciousTM 7 лет назад

    Totally an Aha!-moment. Thank you, Sir!

  • @tumelopeter1750
    @tumelopeter1750 3 года назад

    Thank you very much

  • @MonteLogic
    @MonteLogic 5 лет назад

    I love writing code

  • @oliverfemi5955
    @oliverfemi5955 7 лет назад

    please can you do a video on list category plugin to display category and subcategory list on a page.

  • @PeterKirwan
    @PeterKirwan 6 лет назад

    You sir are a lifesaver!

  • @codechamp2599
    @codechamp2599 6 лет назад

    this tutorial is sitll saving lifes of many programmers Thanks sir

  • @clearf1x
    @clearf1x 7 лет назад

    You are the best!
    Thanks for you tutorials! :)

  • @OliverWoodphotography
    @OliverWoodphotography 6 лет назад

    Thanks for these really clear easy to understand tutorials.

  • @adelyoutube398
    @adelyoutube398 4 года назад

    thanks a lot my hero

  • @avramsd
    @avramsd 9 лет назад

    Powerfull... _!,,!

  • @fengshuienthusiast7635
    @fengshuienthusiast7635 6 лет назад

    Intense, Rewarding, and Grateful.

  • @AmitGupta-ck5tj
    @AmitGupta-ck5tj 7 лет назад

    very nice videos sir

  • @bikashgurung193
    @bikashgurung193 5 лет назад

    i found a great teacher brad. Please make some more courses

  • @hamzaeljaouhari5419
    @hamzaeljaouhari5419 6 лет назад

    I wish if the tutorial was long enough :D haahhaha Thanks a lot

  • @СеменВарламов-щ3п
    @СеменВарламов-щ3п 8 лет назад

    Best Tutorial

  • @mashavainblat8080
    @mashavainblat8080 7 лет назад

    YOU ARE AMAZING

  • @xromium
    @xromium 7 лет назад

    Love your videos! Thanks a lot!