Use sessions:
<?php
session_start();
if( isset( $_POST['order'] ){
$order = filter_input( INPUT_POST, 'order', FILTER_SANITIZE_STRING );
if( $order )
$_SESSION['order'] = $order;
}
if( isset( $_SESSION['order'] )
$order = $_SESSION['order'];
Related Posts:
- Limit number of pages in pagination
- Custom taxonomy list and sortby letter pagination problem
- get_query_var(‘paged’) giving same result
- add spans and characters into paginate_links
- Next & Previous (Pagination in this case) Not Appearing
- Pagination with $_POST and $_SESSION
- Is it possible to have pagination with an offset loop?
- Frontend sorting
- How to get category/tag in URL for Pagination links?
- Can I paginate this get_attachment query?
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- Pagination not working in custom post page
- paged query leads to 404? [duplicate]
- Pagination not working with custom loop
- WordPress /page/2 404 pagination problem – what to do?
- how to get pagination link url?
- add_rewrite_rule – working fine but broken for pagination
- Check if on last page of paginated post using wp_link_pages
- How to paginate a list of tags
- Sorting archive pages with “pretty” URLs?
- Pagination is not working wp_query custom fields values
- wordpress Static Page pagination
- Move pagination numbers above plug-ins
- How to use pre_get_posts?
- Possible to paginate on single.php?
- I want to change the media list with additionally query
- Content only on last page, if the page has pagination
- In pagination, change link for page 1 to homepage
- WordPress API returns empty page when page is less than X-WP-TotalPages
- Display only the current page number and another numbered page in pagination
- How can I paginate image attachments in a post?
- Pagination shows same contents all pages
- How to test pagination? [closed]
- Link to previous month’s posts
- Pagination for multiple queries for different authors on author.php
- How to get “last year from [spec year] that has posts”?
- Pagination url canonical problem
- WordPress loading index page instead of archive.php
- How can I paginate a list of related posts?
- tag.php pagination and query_posts()
- Add icons in paginate_links()
- How do I move/order posts with a tag to the end?
- How can I use var php with javascript to build custom page? [closed]
- WordPress single page template, custom post type, pagination orderby title – alphabetical order
- Single Page Views and Pagination View Depending on URL Query
- Category lists page foreach Paging
- Issue on single.php pagination WordPress
- How can I paginate this?
- How to fix pagination for custom loops?
- Using Ajax in the prev_posts_link and next_posts_link
- How to ignore pagebreaks for RSS feed?
- Custom pagination code is not working
- Pagination doesnt show numbers
- where is wordpress search pagination
- How do I override all theme pagination throughout a site?
- Translating a pager string
- Pagination, query more pages at once
- WP_Query custom order and pagination
- Paginate_links only working on first page
- Unable to paginate a custom page query
- What is the best way to implement ajax based pagination on custom query based templates?
- Custom post type pagination like “previous current/all next”
- what code to add to search.php
- remove rel=next on category page (if
- Setting up Pagination with twentytwelve_content_nav
- GoBlog Free Pagination Issue
- Sidebar pagination posts not shown when sidebar is in single.php
- how to Adding pagination on template page wordpress
- Custom pagination search in post type with meta key
- How to add pagination to custom page
- Pagination: Last Page Missing
- posts_per_page stop working after wordpress update from 4.2.1 to 4.6.1
- Why Am I getting an error when I add the number parameter to my WP_User_Query?
- Paginate Links function: Page 1 doesn’t work
- Alternative layout the loop
- the_posts_navigation is not working
- Display NEXT and PREVIOUS pagination? [duplicate]
- Disable pagination on frontpage
- How can I get my pagination to recognize that it is on the first page?
- Horizontally paginate through sets of blog posts?
- pagination broken because wordpress is adding index.html
- the paged param is allways 0
- How to fix pagination for custom loops?
- Get next and previous page of paginated post
- Pagination 404 Not Found child page
- How to group posts by months and add pagination?
- Reverse ordered pagination on home page
- Pagination for user list
- WordPress: Getting “Newer Posts” and “Older Posts” links on a Specialized Page Template
- Get Previous/Next Post ID for Posts in Same Category
- Need help getting this page nav working correctly [closed]
- another post a page problem
- How can I remove page slug for all pagings?
- Add pagination to the posts retrieved by below query [duplicate]
- pagination: Only one result is shown even if there are more than one?
- Please Help me with Archive 404 Pagination
- Pagination Not Working Properly
- How to add wordpress pagination [closed]
- Separate page for pagination possible?
- Ascending & descending posts on same page with IF statement