There is already a query on that page. author.php
is an optional template file that, if present, WordPress will use for author archives. You shouldn’t have to create another query on that page. I think that your query and the native query are colliding, at least in part because both queries will be using the same paged
query var.
If you need to change something about the query, you should probably be interrupting the main query for that page instead of creating a new query.
function alter_author_wpse_84696() {
if (!is_author()) return false;
global $wp_query;
$wp_query->set('posts_per_page', 10);
$wp_query->set('order', 'ASC');
}
add_action('pre_get_posts','alter_author_wpse_84696');
Related Posts:
- Stomping WP_Query in author archive to facilitate pagination with custom queries
- How can i retrieve default post per page value? from settings->reading. And total number of posts?
- Multiple WP_Query loops with Pagination
- Pagination with custom SQL query
- Different ‘posts_per_page’ setting for first, and rest of the paginated pages?
- paginate_links() adds empty href to first page and previous link
- Custom WP_Query order by post_meta and (author) user_meta
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- Pagination with 5 posts per page
- Pagination custom query
- WP_query and pagination?
- pagenavi with merged wp_query [duplicate]
- Add and in the header while looping over custom query in page template
- Pagination wont work with search results template [duplicate]
- Pagination Not working on Home Page with 2 Query
- Best Practice For Querying Grandchildren?
- Pagination not working on static page
- ‘paged’ in wp_query doesn’t work
- Display different number of posts from one category on the different pages
- Pagination not working Search posts
- Pagination not working for category posts
- WP Query with offset breaks wp_pagenavi or any pagination
- Search – Ajax – Alter Query Parameters with Pagination
- Two queries on the same page with pagination
- Show single post then all posts (with pagination)
- WP_Query pagination not working in admin area
- WordPress pagination link always leads to home page
- Get List of all the Authors
- Create ONE callback for all page templates, post filter queries + paginated pages, triggering pagination via AJAX
- WP_Query ajax loader detect end of posts
- Storing query variable and then using wp_reset_query
- Pagination of a WP_Query Loop in a child-page page template
- Five posts from a category in footer
- WordPress Pagination changes my template
- wp_query ‘s’, search filter with pagination is not working
- Get authors by term id or slug
- Custom Pagination Layout for Elementor widget
- WordPress pagination not working on template search.php
- Cutom wp_query for geolocation search, pagination not working
- Pagination outside of loop
- Custom Pagination in Shortcode with WP_Query
- WP_Query (list) posts according to author’s custom field
- Pagination inside of a edit page
- Avoid repeated post on page 2 when excluding one on page 1
- WP Query to have sticky posts first, with pagination and having a joint ‘posts per page’ arg with main loop
- Pagination for blog posts reloading same page [closed]
- Exclude some authors from query
- Get author if post has multiple authors
- How do I get my custom query to work with search results after the first page?
- Removing duplicate values between two wordpress queries
- Include latest author posts with pagination in single template?
- Yoast primary category query modification
- Page navigation doesn’t seem to work when I add offset?
- Pagination in html table is not working
- How can i show pagenavi in my author.php?
- I am officially missing something about transient posts
- WP_query paged pagination with excluded category still counts it
- Determining what post is displayed out of total posts found
- WP_Query Pagination
- WP_Query, Paginate by Custom Field
- Why is my pagination /page/2 taking me to index.php?
- duplicated posts when using pagination
- wp query to use both author id and meta_query
- Counting instances of words in the results of a post query
- Query posts by post type, author and post meta
- How can I have sticky posts while ALSO showing posts from a specific category using one WP_Query?
- WordPress Sub Category Archive, Show Extra Empty Page Number in Pagination
- WP_query pagination on frontpage
- Get authors list and sort them by recent posts
- Pagination unique to a widget
- Why pagination is not working with tax_query param?
- paginate_links method doesn’t show second page of my custom wp_query
- Wp_Query Post per page not working?
- Pagination Shows Up But Won’t Work on Custom Gallery Page
- 404 page on custom search pagination
- Paging works correctly on local version, but not live?
- Pagination not working in custom loop WP_Query
- Showing the correct number of posts_per_page when avoiding the use of post__not_in
- Paginate nested query of child posts
- How to set up pagination for a custom loop on a global template (author.php, tag.php, archive.php?)
- Combine WP_Query with array of custom data to single loop without breaking the pagination
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- previous_posts_link not working in WordPress pagination
- Pagination not working with WP_QUERY
- WP_Query with meta_value_num and meta_query not paged correctly
- Horizontally paginate through sets of blog posts?
- Pagination with WP_Query not working
- Switched from query_posts to wp_query, pagination no longer working
- WP Query get posts by specific author IDs if one of several logged in authors
- wp_query pagination links producing 404
- Query specific number of posts for each post type in specific order
- Why won’t my paged wp_query work? [duplicate]
- WP_Query breaks pagination
- Pagination doesn’t work for home page custom post type query
- Loop issues when creating custom query for media uploader
- Query multiple taxonomies with pagination
- paginate_links() with Custom Taxonomy
- Pagination problem with multiple loops on the same page
- error with $query->have_posts()
- Pagenavi with archive page