I didn’t load the plugin to check and I never use query_posts()
, but perhaps tie_pagenavi()
is depending on the value in the $paged
global variable. Try adjusting that value before (or after) calling query_posts()
. Here is the code to adjust it before calling query_posts()
.
if ( get_query_var( 'paged' ) )
// On a paged page.
$paged = get_query_var( 'paged' );
else
$paged = 1;
query_posts( "paged={$paged}&posts_per_page={$cat_query}" );
if ( function_exists( 'tie_pagenavi' ) )
tie_pagenavi();
Related Posts:
- Problem: ( kriesi ) pagination doesn’t work in homepage [duplicate]
- Page navi for template page
- get_posts custom paging
- How to determine if I’m on the first page of pagination?
- How To create ajaxed wp-pagenavi?
- Limit number of pages in pagination
- pagenavigation not showing the next page just linking back to the main page [closed]
- Custom Page Template for “Older Posts” Pages
- Paginate get related post by author function
- Pagination with get_posts seems to work but links not showing
- Next & Previous (Pagination in this case) Not Appearing
- Get total posts found, but while using limit for pagination? get_posts
- Pagination with $_POST and $_SESSION
- AJAX pagination offset returns same post on adjacent pages
- How can I paginate a list of related posts?
- Pagination stopped working after assigning custom page template to new page (different slug)
- Adding pagination on template page wordpress
- Wp-pagenavi giving page not found on clicking page 2
- How do I make my pagination work?
- Show content based on page number
- Remember form field values with page navigation
- WP Page Navi. 404 error when using posts per page parameter [duplicate]
- Customizing Latest Post Pagination
- Adding paging to get_posts()
- paginate posts on admin page
- pagination links not displaying
- How to add post page pagination to template part?
- Pagination is not working in custom page template
- Only show pagination when post count exceeds show post
- Need help with get_posts pagination
- the paged param is allways 0
- WordPress pagination URL posts not load
- Need help getting this page nav working correctly [closed]
- Pagination with wp_pagenavi not working on custom page
- Separate page for pagination possible?
- How to display pagination links for WP_User_Query?
- post pagination names, not numbers
- How to fix pagination after rewriting url? ie. www.site.com/players/type/pro/page/3/
- Implementing a general Table of Content across single paginated post pages
- Custom WP_Comment_Query with pagination and orderby?
- Pagination: How do I always show ‘previous’?
- Varying the number of posts per page from the first one
- Using pagination with get_posts on page type
- Setting pagination for images attached to a post
- Paginate tags page
- How to display next and prev pagination links with WP_User_Query?
- Custom taxonomy list and sortby letter pagination problem
- How to change title tags on paginated posts?
- add spans and characters into paginate_links
- wordpress Next/Previous post in same category not working
- WordPress Pagination not working, any ideas?
- Pagination of a WP_Query Loop in a child-page page template
- Prev and Next link for splitting single post into multiple pages [duplicate]
- Pagination: /tags/tag_name/?paged=2 gives a 404 error
- How to disable pagination (next/previous links) on post type archive?
- Pagination indication “/page/2/” are removed from url and auto redirect without /page/2/ : 301 redirection
- Pagination with no ‘page’ slug
- Modify WP_List_Table pagination “item(s)” text?
- How to stop WordPress returning 404 on paginated pages after using add_rewrite_rule()?
- Pagination not working on custom page
- 404 when using pagination in a category
- Pagination customization
- Pagination w/Static Front Page
- How do I fix this ‘Undefined variable:’ debug message?
- How do I paginate a list of categories?
- Post Pagination Modifications (wp_link_pages)
- /tag/tag_name/page/2 gives a 404 error
- Post Navigation Not Working In Blog Template – Redirecting to same page with correct URI
- Pagination on and tag.php not working
- How to get rest api pagination headers via fetch
- How to remove /page/2/ from home page?
- wordpress custom search page pagination returns 404
- Problem when I try to insert pagination
- Change the format in the paginage_links
- Pagination on WP_User_Query not updating current page
- Blog pagination WITHOUT using max_num_pages
- Why my pagination gets 404?
- How do i make the_posts_pagination look like my template?
- 404 page not found on pagination in home page while navigating to next page
- Linking images in WordPress Paginated Post
- Set Pagination count according to post count
- Pagination in Archives
- load certain content only on first page of pagination
- Pagination diplays always 2 pages
- Combining content breaks category pagination
- Custom Query & Rewritten URL Pagination 404
- Search URL gives 404
- How to paginate query using get_categories()
- WordPress 404 pagination (/page/2) error?
- Excluding certain post status’s from pagination
- WordPress creating 404s under blog tags
- Wp Pagenavi how to display all results
- Intercepting $_GET variable from custom pagination
- Query specific number of posts for each post type in specific order
- Default pagination in Home/Front page
- Making a Killer wp_link_pages
- pagination leads to 404 page
- Show pagination in WP_Query
- How to automatically load more data when users reaches at the bottom of the page of the wordpress site?
- Change “/” (slash) before page number in pagination path to “-” (hyphen)