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
- if ( is_home() && ! is_front_page() )
- 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
- How do you split multiple-column loop on category archive page?
- How to Loop within a Loop (Display Children and then Grandchildren)
- Check if date of post is yesterday
- Page template not displaying
- Adding active/current class to get_terms list
- Loop posts only excluding first post
- Loop through all posts in a certain year
- Loop through pages with specific template
- Show a different post every 3 days [duplicate]
- How to get_template_part using AJAX?
- Loop after page content
- wp alchemy multiple image uploader output images to template
- A loop with all articles with certain text strings in tags
- code suddenly appearing from my tempate second loop
- 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
- How to go about combining dropdowns / filter queries?
- 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
- How do I use AJAX Query in my posts loop?
- Template structure
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- woocommerce get_price_html not pulling in correct price
- How to fix pagination for custom loops?
- How can I paginate this?
- How to display posts by vote count and if no value continue with latest posts with no votes?
- How to fix pagination for custom loops?
- Split wordpress loop to multiple layouts
- How do I make a variable available inside partials?
- Making a query to the DB using same parameters of loop
- Group posts by date with a list
- 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
- add offset to archive page
- loop inside the foreach
- 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?
- Loops for cat links not looping for wordpress site
- 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?
- Is “the loop” a template tag?
- Query posts and display all dates in repeater field in chronological order
- Deeply Nested Menu Loop with Twig using Timber [closed]
- How to fix pagination for custom loops?