That’s because you overrule the query. You have to put the original info into the query_posts like so:
<?php global $query_string; query_posts($query_string . 'posts_per_page=10&paged='.$paged); ?>
For more info look here: http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note
Related Posts:
- Order archive results by post id in custom taxonomy template
- Default ‘post’ post type archive slug?
- How do I set the Stewart Search Template to return only published posts in the result
- Is it possible to set archive.php instead of index.php to display blog?
- Alternative layout the loop
- Creating a archive for taxonomy terms, not the term results
- How to fix pagination for custom loops?
- Jquery Slider for profile template
- Remove the Homepage Query
- Get date of last update outside of loop
- Rearranging posts based on categories
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- Is including the loop necessary for page.php? [duplicate]
- Add 20yrs to post date, and then query
- What is best way passing variables to theme templates and using them different places like widgets?
- Query date in wordpress loop
- Show scheduled posts in archive page
- Transient not working for custom loops
- post loop causes wp_users and wp_usermeta DB queries for each users
- get_the_foo() in the loop – does it perform another query?
- If No Search Results, Show Posts from Alternate Search Query
- Display date only once for a each set of posts relating to that date
- Check if date of post is yesterday
- Page template not displaying
- Loop posts only excluding first post
- Loop through all posts in a certain year
- How to get_template_part using AJAX?
- Loop after page content
- wp alchemy multiple image uploader output images to template
- Display most viewed post from last 30 days is not working correctly
- Query posts if meta key starts with
- 3 Posts in Loop, Show Stickies First
- Get search.php results in header.php?
- Query reset problem or flawed code to enable custom post type query
- Query last updated posts (posts updated in the last 24 hours)
- WordPress Loop inside Loop?
- Conditional query that displays on Woo product attribute pages
- Duplicated posts on category page
- Template structure
- How can I paginate this?
- How to fix pagination for custom loops?
- Split wordpress loop to multiple layouts
- How do I make a variable available inside partials?
- Change date format
- Loop inside query
- 404 Template customization | Want 10 recent Post on the 404.php error page apart from the error Notice
- First archive page with a few posts
- Query Nopaging action not having effect
- Issue with custom loop in Archive page
- Second Loop Showing Only One Post on Single Post Page
- How do I put my frontpage featured image in a page template for home.php?
- Custom Post Type setup
- get_delete_post_link() inside Loop stubbornly returns nothing
- Query posts only with actual text content (not including shortcode or images)
- Modify loop output for a specific list of categories
- Get markup for post without loading into the template
- How to render the single post template with the post name?
- excerpt not showing up
- new custom theme – posts displaying on top of one another
- How do i create a list-posts-page?
- Exclude posts based on an array
- Query post & loop problem.
- How to sort a loop after most viewed
- Simplest Way to Build Custom Archives Page?
- get_children() Archive Template
- How to loop specific Category menu from archive page?
- Include last post date in get_categories loop
- Using is_page_template inside loop
- Trying to get all links in my posts
- Display articles with a different template in the home page | Solved |
- Custom Query with Sticky Posts
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Duplicate posts on archive page
- Archive: Lists itself
- Build a Page which shows the Oldest Post with specific Custom Field Value
- is it bad to copy the loop for a template?
- Query posts and display all dates in repeater field in chronological order
- How to fix pagination for custom loops?
- Cant pull in featured Image
- Show posts by tags excluding current post
- Template included with plugin doesn’t return all posts for custom taxonomy
- Strange problem with wp_get_attachment_image_src database (db) query count
- Archive sorted by month – separate
- Next 10 posts data of currently viewing post in blog page
- How to fix pagination for custom loops?
- Problems With Query and/or Template Part and/or PHP
- Need a conditional to test if title of parent page matches title of child page
- How to fix pagination for custom loops?
- How to fix pagination for custom loops?
- Get last 5 days with posts
- Get query result before posts are displayed?
- Load featured article once in a loop
- How to implement template file and the loop
- Same posts within a paginated page
- Multiple loop with pagination in same page
- Why did my most recent article fall behind an older one on my site?
- How can I create an entirely new, separate display of posts?
- Query Loop Block: possible to restrict just child pages?
- Use Base-URL with Query-Loop