Don’t use query_posts()
.
Try:
<?php
$query = new WP_Query('orderby=title&order=ASC&posts_per_page=-1');
if ($query->have_posts()) : while ($query->have_posts()) : the_post();
?>
Related Posts:
- How do I prevent one of two multiple loops from repeating on a second page?
- Duplicated posts on category page
- Make blog page show 10 on first page, 9 on every other page
- Pagination for two loops
- Why does my WP_Query pagination on a custom page.php only loads the homepage?
- Displaying posts limit: can’t get pagination to display [duplicate]
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Custom Page Template and Category Exclusion
- How to fix pagination for custom loops?
- Pagination not working on home page
- Get the number of posts from the current page results
- Loop.php vs looping inside template file
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- Why is it necessary to call rewind_posts() when using the loop more than once? [duplicate]
- WordPress category & taxonomy loop with pagination
- Multiple posts with one loop iteration
- Two custom loops, pagination, offset
- Show newly added posts since last user login time /date
- Broken pagination
- Search results with custom loop don’t update when paged
- Pagination Not working on Home Page with 2 Query
- Previous and Next Post link doesn’t work
- Display page of custom posts?
- Post Loop not Returning Permalink
- Custom Loop Pagination on WordPress
- Pagination adding extra posts only on page 2
- How to Loop within a Loop (Display Children and then Grandchildren)
- Last post is not showing up
- Exclude first 2 posts with meta_key from loop
- How do I override part of the main loop in my child theme?
- multiple loops with pagination on the same page
- Enable infinite scroll on single.php [closed]
- Adding Pagination on a Custom Author Page
- How to paginate this custom loop? [duplicate]
- Make a custom loop inside single.php with pagination
- Why do I get `Call to a member function have_posts() on a non-object `? [closed]
- Pagination gives extra page with no results
- Get Pagination (WP-PageNavi) not to work
- Static Front-Page Excerpts
- Setting posts per page in query_posts
- How to insert content from another Custom Post type into Post?
- Better way to display posts from specific categories, in a grid layout
- How to get an array of years from all of the search results, and use it to filter by year the paginated loop?
- Five posts from a category in footer
- popular post weekly and monthly
- Complex query and posts pagination
- 3 Posts in Loop, Show Stickies First
- Why only one post (and no pagination) on this variation of the loop?
- Using loop pagination on single.php
- Recent posts on a static home page
- Query last updated posts (posts updated in the last 24 hours)
- Displaying terms based on loop posts?
- Pagination Issues using WP_Paginate Plugin
- Blog post per page setting conflicting with custom WP_Query?
- Calling & display certain product category loop and pagination on the homepage
- Pagination for multiple loops
- How to fix pagination for custom loops?
- show random image in loop if image is not set
- How can I paginate this?
- How to display posts by vote count and if no value continue with latest posts with no votes?
- Genesis multiple category custom loop 404s after first page
- How to fix pagination for custom loops?
- Pagination – works on local but not live dev!
- query_posts() vs get_posts() multiple loops [duplicate]
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Custom loops, sticky posts, and pagination nightmare
- pagination not working for category.php (custom post types in categories)
- Split wordpress loop to multiple layouts
- How do I automate multiple category loops?
- Exclude first post (sticky or not) from the loop using query_posts()
- How to order by multiple fields using standard query_posts?
- Pagination on Single Post
- How to get my loop to paginate?
- Pagination not working in category listing [duplicate]
- How can I improve the performance of this query_posts loop?
- Distribute Gallery Images Every nth in Loop
- How to exclude or filter password protected posts when using next_post_link() previous_post_link
- Adding div after every two post on main loop! Why will first post not get counted?
- How to append a query string to pagination?
- How can I access specific posts brought back by query_posts?
- Pagination on category.php and tag.php not working
- How do I get my loop.php to properly paginate?
- When to use WordPress loop or Foreach loop?
- First archive page with a few posts
- Pagination broken after using 2 loops to show content
- Pagination on custom post type on front-page.php
- Separate First Post Loop
- I have broke my pagination, same posts on all pages (index.php)
- get_delete_post_link() inside Loop stubbornly returns nothing
- Query posts only with actual text content (not including shortcode or images)
- query_posts clarification needed
- Frontpage pagination by week
- Integrating WordPress with Your Website
- How to Fix an Archive.php That Displays All Posts?
- How can this multiple loop have pagination as described?
- Display more than 10 posts on author.php file
- pagination broken – clicking next displays “page not found”
- Paginate pages with dynamic query