Take the 2-minute tour ×
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
add comment

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

http://codex.wordpress.org/Function_Reference/paginate_links

Though the plugin solution seems the easiest to setup

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.