WordPress Pagination Tutorial (Custom Query & Template Integration)

WordPress Pagination Tutorial (Custom Query & Template Integration)

Let’s learn the basics of pagination and how to paginate our own custom queries.

Link to my website:

My HTML & CSS Course:

My “Get a Developer Job” course:

Link to source code for theme files we worked on in this video:

Add me on Twitter for webDev resources and cat pics:


38 Replies to “WordPress Pagination Tutorial (Custom Query & Template Integration)”

  1. I only wanna tell to you one thing that you are just No. coder for WordPress. I did not know even what is WordPress. but, after watching your videos i make one website on WordPress.
    Thank you so much! #Brad

  2. I have a question. I started to learn html and css and now I’m able to create templates. What is my next step java script, learn databases or wp? My aim is to build a web store.

  3. i really can’t wait for all your tutorials you are one of my best teachers and i’de love to see more of your wordpress tutorials
    Thank you so much again and again

  4. Wow! You make learning WordPress soooooo much easy! I have been trying to learn WordPress from the last 2 years but every tutorial disappoints me except yours. Recently I’ve found all your WordPress theme development tutorial and I am just amazed how easily I can learn from your tutorials! Please go ahead and give us more tutorials. We need these types of super valuable tutorial from you more and more. God Bless you 🙂 🙂

  5. The person who unliked this must be jealous as hell….. Thanks a lot, Brad… You the best.

  6. Hi, can you make a video series of converting a complex HTML template to WordPress theme? There are many jobs specifically asking for this kind of work.

  7. how do i move my site name to the center i can’t seem to figure it out i want to do it through my code

  8. Just picked up your udemy course! Can’t wait to finish these last couple of videos and dive in.

  9. Excellent, i’ve spent days trying to figure out this, you made my day. Thanks!
    But is there a way to use CSS classes for previous, next text, and style theme?

  10. How do I add the pagination on static blog page – home.php?
    I followed your tutorial but without result.
    Also I dont know why would you use index.php(unless for tutorial/learning purpouses) anyway because most of times you should use static front-page.php and static blog page – home.php, then create a default template for all pages in page.php.

  11. thank bro for the tuts and keep it up……………

    and bro can u please give me the software download link that you use in video tuts

  12. Hi, I’ve been looking for this information for weeks and now you’ve helped me.
    I’m with the happy with project completed.
    Thank you very much!

  13. It still wont work for me, very frustrated have been attempting to fix this issue for 2 weeks. Please help What am I doing wrong??

    ‘page’ => $ourCurrentPage

    // Instantiate custom query
    $custom_query = new WP_Query( $args );

    // Output custom query loop
    if ( $custom_query->have_posts() ) :
    while ( $custom_query->have_posts() ) :



  14. Hi Brad, I love your videos and they have helped me out so much. I just wanted to know if you were planning on making a jquery serie for wordpress?
    and thanks for everything you do.

  15. Hello, I’m a beginner of WP. Thanks for this tutorial. This is very helpful. I get to learn WP theme dev one step at a time, and it’s easy to follow. I like it when you give homework, I get to learn on my own. Hope to see more tutorials like this one. BTW, I followed your channel hoping to get more and learn more in easiest ways possible. THANK YOU! God Bless!

  16. hiii

    i do it all the way you did it but mine doesn’t work
    plz check my code if there is mistake let me know

    5 ,
    ‘category_name’ => ‘blog’ ,
    ‘paged’ => $currentpage

    $myposts = get_posts( $args );

    <a href="”>

    )); ?>

  17. Hi! I included echo paginate_links(); after the while loop in archive.php but it shows no results. After 10 entries it keeps saying “Older posts” and I really need it to be paginated. It´s a WordPress Parabola, should I use that code in a different php?
    I would really appreciate your help. Btw your video is very good, congratulations!

Comments are closed.