WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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: http://wordpress.org/extend/plugins/wp-pagenavi/

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.