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
- How would I get a taxonomy/category list inside a Gutenberg block?
- What does the token %1$s in WordPress represent [closed]
- Rewrite rule page url with category
- WP_Query not looking at child category
- Deleting default category in wordpress
- Excluding posts from a category but only if they’re not in multiple categories
- Showing all the posts in one page?
- How to order categories in Woocommerce that are spread over multiple pages? [closed]
- Script to duplicate categories as tags
- How to sort categories by id in wordpress admin
- How to override Category rendering mechanism
- Automatically add product_categories to nav_menu
- Can paginate_links() be customized for a specific category or tag?
- Add Product categories to WordPress menu without losing hierarchy
- How to set up Author archives with sub category URL
- How to change number of items on add new pluggins page from backend?
- Ignoring a category in WP_Query still shows the links in next_post_link()?
- Do I have to use categories?
- get_the_category and echo out link to child-most/deepest category
- Categorising posts/pages into years published
- How can I duplicate categories and tags?
- Display category description instead of “nothing found” page
- Subcategories with the same name
- How can I add more “filters” to my products? (Categories, attributes, etc.)
- Removing post category base giving Error 404
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- posts_nav_link(); picks up index.php instead of category.php as template
- Is There a Difference Between Taxonomies and Categories?
- Related Tags not in category
- How to get the last category name of a child category?
- How to show a list of only categories (exclude subcategories)
- How to list categories in reverse alphabetical order?
- I want to show category name when using [category] shortcode
- Category list with postcount
- How to hide some categories in dashboard
- How to choose the content from a post which is in the right category?
- How to display product with two condition, category and brand taxonomy
- How to get category id’s which are added in main menu?
- Get a random thumbnail from posts belonging to a specific taxonomy
- How to check if a category has a parent and child categories?
- Category List and Automatic jQuery classes
- get all categories’ latest post in one query
- Categories show 404 error on multisite installation
- Show posts from category specified using a custom field
- Display latest post from WordPress Featured Category that is also in X,Y,or Z categories
- Categories Listing and Highlighting current category item
- Display Sibling WooCommerce Product Categories on Archive Page
- excude a specidic category from showing in the “relative posts”
- Show posts from a single category by default using wordpress.com
- Filtering blog posts by category
- Get Categories of multiple posts
- Show subcategories broken when WP/WC updates
- Display menu in category and sub category
- How to change category labels in different colors?
- Display some WordPress categories as random order
- Correct Hook/Filter to amend category choices on post edit page
- On main page, in each post, display image depending on post category
- WordPress categories hierachy issue
- Pagination does not work with query_posts()
- Default URL for category dropdown select option
- Custom file with special code of category widget
- Custom field picture instead of post thumbnail on category page
- How to add style in functions.php depending on conditions?
- Using categories and pages in menus
- A simple question regarding tags and categories
- Gettind 404 not found wen click the view button for a given category custom post type portfolio
- list first post of Child Category on Category page
- Archives and category of authors
- How do I add and display a custom image field to a category? [duplicate]
- Display post of current parent category, and in right hand side show child category post
- Category pagination not working in category.php please help me
- Print the associated categories of the current post starting with parent (with option to remove href)
- Add category image before post title on homepage
- how do I exclude a category foreach
- CPT Custom post type Tags & Categories not showing for ‘Editor’ user in editor