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
- Pagination not working on home page
- 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]
- 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
- How to Loop within a Loop (Display Children and then Grandchildren)
- Exclude first 2 posts with meta_key from loop
- How do I override part of the main loop in my child theme?
- Enable infinite scroll on single.php [closed]
- Adding Pagination on a Custom Author Page
- 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?
- popular post weekly and monthly
- Complex query and posts pagination
- 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?
- 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?
- Genesis multiple category custom loop 404s after first page
- How to fix pagination for custom loops?
- 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 access specific posts brought back by query_posts?
- How do I get my loop.php to properly paginate?
- When to use WordPress loop or Foreach loop?
- 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 clarification needed
- Paginate pages with dynamic query
- static page with multiple loops breaks post pagination
- Magazine style frontpage with multiple categories/loops and no duplicate posts
- How do I query based on the modified date?
- Skip 5 latest post while paging?
- Modify main loop query for paged and meta key
- Is it possible to set archive.php instead of index.php to display blog?
- Get a Post Loop based on Logged in User information into a Shortcode
- how to add 4 post in one carousel slide
- How to insert content before pagination in loop?
- Custom loop not working in singular.php, working in other pages
- Alternative layout the loop
- How to fix pagination for custom loops?
- Display single post inside accordion based on form submission results
- Adding pagination to WP_Query [duplicate]
- get_posts and wp_autop (remove filter)
- How to fix pagination for custom loops?
- Twitter bootstrap carousel multiple items in carousel
- trying to write a variable into a wp_query, need help!
- display only parent replies count in index.php
- pagination does not work with query_posts. Help! [duplicate]
- Change the way wordpress outputs images or image galleries
- Paged homepage – requirements?
- Least Number of Loops to Create Custom Homepage?
- Pagination problem with multiple loops on the same page
- WooCommerce custom loop pagination on front page
- How wp maps urls into files
- Pagination in category.php not functioning
- posts_nav_link() not working on index.php
- How to do query_posts on tags pages
- repeating posts on 2nd page to posts
- Same posts within a paginated page
- Insert multiple custom components after x-number of posts
- Show number of posts AND number on current page (cannot make it work)