Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How in category.php to output a numbered list of links to pages like:

1 2 3 4 5

when the number of posts in the category exceeds the number of posts to display?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

As an alternative to using a plugin like PageNavi(as suggested in another answer), you could also use a wordpress native function

Though the plugin solution seems the easiest to setup

share|improve this answer

WordPress doesn't output numbered pages by default, but you can use a plugin that does that. WP-PageNavi seems to be the most popular and easiest to setup:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.