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

I have a FAQ category and there are posts in that category I want to add pagination to that category only, not the other category in my wordpress.

In short giving pagination to selected category for the posts in that category

share|improve this question
Could you rephrase this? Is this page a custom post template showing posts in a category or custom post type? It's not clear what your asking – Tom J Nowell Nov 17 '11 at 11:18
So? whats your question? I don't see any problem having that. Are you asking how to do pagination? – Sisir Nov 17 '11 at 11:34
Actually its post type page and in a FAQ category i want to give pagination to that FAQ category – user10345 Nov 17 '11 at 11:48
oooooh you should have said category, a page is a different thing in wordpress, they are not the same – Tom J Nowell Nov 17 '11 at 12:46

Create a category-faq.php in your theme folder ( assuming category is your taxonomy and faq is the term slug ), and put your category code in there, and add pagination code to that file. This is a category specific template.

For a view of what templates you can add and the types of instances they occur in and their fallbacks, refer to this image:

enter image description here

share|improve this answer

I would highly suggest usting custom templates for this; a good tutorial can be found here: http://www.vooshthemes.com/blog/wordpress-tip/create-a-professional-portfolio-using-wordpress-3-0-custom-post-types/

If you don't go the custom templates route you're going to need to create a template for that specific category - as mentioned above name it category-name.php... "name" should be replaced with the name of your category.

You can do the pagination with this plugin: http://wordpress.org/extend/plugins/wp-paginate/

Alternatively, you can used WP's built-in pagination function: http://codex.wordpress.org/Function_Reference/paginate_links

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.