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 (5)

  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 http://mydomain.com/abc/page/2
    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.

  5. Morshed Alam Suman says:

    Hello Bhumi,

    Thanks for this article. It helped me a lot.

    I have a question. How can I remove “page/1/” from the link?

    Hope you will reply.

    Thank you.

Leave a Reply

Your email address will not be published.

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

Most Popular Posts

How to Create a Zip File In PHP

Posted on 11 years ago

Bhumi