Back to Top

How to Paginate WordPress Taxonomy?

To use Pagination with Taxonomy in wordpress

It is very interesting and exciting to work in wordpress and this time I am going to explain to use paginate taxonomy in WordPress.

Usually, we use pagination with post and custom post types.Its easy to use pagination with post when you are using while loop and have_post function.

But to use same pagination function,its not quite simple to use with taxonomy or custom taxonomy. because you will bel get ‘404 – Not Found’ errors when trying to link url with < taxonomy_url >/page/2

Read about: To import terms from csv in wordpress

So, Let’s understand code which will be work with taxonomy loop:

That’s it.It’s a wrap!.This concludes today’s tutorial! I’m hoping that you’ve found this tutorial useful.

Read: Pagination when getting posts from category in WordPress

Don’t hesitate to use this code in your WordPress projects and post your comments if you need help. As always, thanks for reading. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Comments (4)

  1. Hi
    Thanks for this, Works like a dream

  2. Hi, I have a problem when using your code with my custom post type taxonomy. The pagination works but the link does not. It always turn to 404 error. Unable to get
    Could you help me with this. Thank you so much!

  3. Markus Bäck says:

    works 😉

  4. Bittu Debnath says:

    This code did not work for me, Tried it in my custom taxonomy page.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

Difference between echo and print in PHP

Posted on 7 years ago


Problem with German special character

Posted on 7 years ago


How To hide WordPress Toolbar

Posted on 2 years ago