The problem is that your call to query_posts is overwriting the original query for the page. You have to get the original query, then modify any params from there.
global $query_string;
// start with the original query
$myquery = wp_parse_args($query_string);
// make any changes to the query here
$myquery['posts_per_page'] = 9;
query_posts($myquery);
Related Posts:
- Code to pull in a PHP file named after the category ID
- in_category() works in single.php but not in page.php?
- Add title, post content, and category like add_post_meta and update_post_meta
- Show only one category
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- Taxonomy filter all children
- Second level subcategory
- query in category.php repeats itself
- Counter in loop in foreach
- Woo Framework: woo_cat_featured not populating
- Create menu locations for each category in wordpress
- Different Output for “Every Other” Foreach Statement?
- Exclude category from foreach loop
- Explode() expects a string
- Media Library Category Exclude Tree
- Multiple if statements with else for get_the_category [closed]
- Cant get unique_array() work on get_the_category() foreach loop
- How to add Pagination to foreach loop to page
- How can I modify this code to iterate over an array of categories?
- foreach,having wp_query inside, breaks after showing one result
- Category foreach Paging
- Display only the latest post
- Paginating a list of all posts collected by category titles
- how to edit wp category widget
- Page permalink rewrite
- Displaying Categories and Sub Categories
- How to assign posts without any category to the default category
- List subcategories of active parent category (WooCommerce)
- Remove sub-menu item from admin menu
- WordPress Get Posts from each category equally
- Show only first category name in RSS?
- Change thumbnail image depending product category
- Show parent category in URL of subcategory archive page
- Unwanted Duplicate Product Categories in WooCommerce
- How to organize custom categories for filtering and selecting
- how to get child category title and image
- How to display categories which contains particular tag?
- WP didn’t redirect to canonical category URL
- Woocommerce custom category pages
- Custom archive.php: retrieve right post categories?
- Custom sub taxonomy order by
- I cannot add more Categories to my menu
- Add category only if post has custom taxonomy category
- Customize WordPress widget – Product Category
- Paging not working in category.php
- Restrict author to create subcategory in a selected category
- get_template_part based upon post’s category
- “Categories” for six authors [closed]
- Customize permalink wordpress category id
- how to save selected option in variable for rest api category filter
- WordPress/Woocommerce only show category in shop to a single role
- Previous/next post links displaying wrong category than is desired
- Setting default category base on theme activation
- How to Add Default Content for all Category Pages Before and After Content?
- How to create a page which lists all categories with its ratings [closed]
- Add /category/ to an author archive page
- SQL to migrate post types to taxonomy
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- How do I toggle pagination on/off in search results and category listings via a link?
- Mod_Rewrite to show only last subcategory in URL
- wp_dropdown_categories() scripts working erratically on sidebar
- Permalinks: display just one kind of wp category in the posts url
- Send to different single pages by category when multiple categories exist
- Hide subcategories (widget)
- posts_nav_link(); picks up index.php instead of category.php as template
- Category shows only top level child categories
- WordPress query via checkbox form
- Access current post parent and sub category
- Category name field strips HTML tags. How can I reverse this?
- WooCommerce – How to show specific category first-rest of products-specific category last
- Give a page priority over a category that has the same name?
- Multiple URL’s based on category for one post
- Multiple categories with common subcategories
- Alert Bar section within WP loop is displaying even though there are no posts
- Let Users Choose Post Categories
- Same base for category and post
- How to display post type and category links in foreach WordPress code
- The arrangement of categories always change while posting article
- Filter $cpt categories to omit certain category
- How to list categories within tags?
- Different post styles depending on category
- Display category name only once inside loop
- get_next_post set the category
- Yearly Archive for Categories with dropdown
- How to add WordPress sub category without select
- Woocommerce custom category page with pagination [closed]
- Updating category template to change how subcategories display
- Menus don’t work after 4.4 [closed]
- Display Posts Loop for each parent and for each Child
- category permalinks
- Create menu / submenu from category subcategory and posts
- Hide uncategorized when no category set
- Filtering *out* a taxonomy from the admin post list
- Display categories with child category separated by letter
- category image taxonomy
- Categories overview that links to page displaying posts
- Make a custom_post translatable
- wp_list_categories set order manually?
- Listing Texts of Which Custom Field is Null
- How to set a filter by category within a customised page