Add this to your query:
'paged' => get_query_var('paged')
Like so:
$args = array(
'post_type' => 'species',
'meta_query' => $meta_query,
'tax_query' => $tax_query,
'paged' => get_query_var('paged')
);
Should do the trick.. Using Wp-pageNavi? dont forget to add the
wp-pagenavi tag just after the loop ends
<div class="navigation"><?php wp_pagenavi(); ?></div>
.
Hope This Helps 😉
Cheers, Sagive.
Related Posts:
- Pagination on archive.php page
- Having trouble generating pagination links on custom query
- query_posts and pagination, still stuck after much research
- how could I get the pagination as I want to when query posts using get_posts function
- pagination in author.php template returns 404 error
- How do i paginate query_posts with numeric pagination?
- Custom posts per page does not work with pagination
- WordPress pagination showing same posts on each page
- WordPress pagination with get_posts?
- Using ajax with paging and a custom sub-query
- Custom loops, sticky posts, and pagination nightmare
- Querying posts only if the current page is not paged?
- query_posts pagination will always show identical content
- Can’t get pagination to work for sticky posts only
- How do I use pagination in WordPress?
- Pagination linking to first page
- Modify main loop query for paged and meta key
- Post Filter clearing on pagination $_post
- get_next_posts_link() stops displaying at page 4
- WordPress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
- Achieving pagination with `query_posts`
- posts_per_page no limit
- Query posts by custom taxonomy ID
- How to return results of a get_posts() in explicitly defined order
- Get the number of posts from the current page results
- Query posts: how to exclude results if post is in multiple categories
- query_posts ->using meta_compare / where meta value is smaller or greater or equals
- How to order posts by descending comment count on taxonomy page?
- WP 5.8 “Query Loop” block: where to place custom query?
- order post my meta value m/d/y format with year as included value
- _wp_page_template to dynamically use template
- Schedule Sticky Posts
- WordPress Search Filter Only for Page with Child of Child of Child of Child of Child
- Problem with single-page for my custom post
- Different amount of posts on homepage than paged pages
- How to make the list of post and load on same page with sub-pages [closed]
- How to get 4 Posts after the 5 most recent ones
- post_status => publish not working
- How to fetch all posts in a category that were published between two given dates?
- get_meta_data within a loop
- how to exclude “featured” posts from the main loop?
- Five posts from a category in footer
- pass query string on url to filter media
- Order posts by condition
- Co-authors plus problems with query_post
- Error sending array of inputs
- Custom MySQL Query with logic
- order posts by meta value on posts page
- Search breaks when querying main loop for category
- Category with post type pagination returns 404
- Adding conditional content to single post-type template
- Query posts by meta_key whose value is an array
- Proper syntax to add boolean in array()
- using query_posts to pull posts out of a category in a while loop. Getting odd echo
- Pagination on category.php and tag.php not working
- Currently using a query_posts() in my theme – want to use a request filter in stead
- Pagination for query_posts();
- Breadcrumbs stop working on a specific template file
- Pagination, query more pages at once
- Order for custom field after the loop
- Custom post query error
- Multiple instances of query_posts
- Paginate pages with dynamic query
- Different layout based on post amount?
- Trouble Making WP_Query paged
- If Query Post Returns 1 Post
- How to check a list or feed of all posts under a category and tag?
- Keeping get_posts’ offset and is_paged() synchronized
- odd behaviours from template tags
- How to get any type posts include attachments by ids?
- wordpress query_posts featured page always on top
- Create a Loop with Posts Ordered by Most Recent Comments
- Need to add a space after meta value in query_posts in wordpress for zipcode search
- Specifying image size used in template the_content
- Use WP pagination functions on a custom page template
- allow user to edit posts made by others users based on the user role
- Pagination not working on my archive page for a custom post type
- Ordering Posts By Meta Data
- Order posts by ACF checkbox
- Post per page not working
- Show previous month’s posts
- why is pre_get_posts not working
- query_posts result differs from wp_query request result
- If meta_key has value = 6 | Change the wp_posts.post_date to current date
- How to inject a post within a loop
- Query posts based on parents attribute
- Adding Category Argument into an Array for WordPress Query
- Collect posts from last 48 hours
- The_content display a different content from a previous loop
- How to go to tag archives using a form
- Run second query on page based on author of the first query
- Why doesn’t this page query work?
- Showing one post from each category, paged?
- query posts returns 10 records
- Sort posts with multiple meta_keys
- Create “archives by year and week” by category template
- Limitless amount of posts in custom archive page
- query_posts different amount of posts per page [duplicate]
- Show number of posts AND number on current page (cannot make it work)
- /page/2/ redirect to 404