What you need here is Ajax. You will need to read about how to use WordPress Ajax (link).
When your visitor click on select field to choose sorting, you need a JS function to handle the data about how to sort and where the visitor in, then a js function to make ajax request to server.
At server here (I mean your theme function) you will need a function to handle request and send the response to client. The handler function here is a WP_Query loop to loop your post according to the order that your visitor chose.
Sorry, I don’t have enough time to provide you the code, but I think for a scripter/coder/developer, the direction is enough.
Related Posts:
- $wp_query initiation?
- Custom archive page based on array of categories and tags
- Tell wordpress to show a single page instead of an archive
- List of the years with posts presented
- From where is archive.php getting its posts?
- Display posts from only one post form in custom query and exclude in main query
- Remove category from query (show all posts in archive.php) pre_get_posts()
- Two loops on archive page
- How to order posts by title after they have already been sorted by category
- Filtering out child category posts from parent category archive not working
- Display if author page is author page of current user
- Filtering posts by archive showing all years
- Creating attachments archive in tags and categories
- Post archive for certain post format
- Creating ‘posts page’ loop based on the page itself
- get_children() Archive Template
- In a WP_Query can I force the results’ is_singular() to be set to false?
- Pagination not working on archive.php template?
- How do I stop the same post showing multiple times in a archive?
- WordPress custom query by archive title
- In Product Category archives how to show Posts having same/similar prod_cat slug structure?
- Show full category tree for a year with all post titles?
- Get X posts for all post types on Taxonomy term archive
- How to add archives (with pagination) to page template?
- Main loop querying current template’s info only in custom category archive pages, not my posts
- query only direct child and sub-terms of a current term archive
- the_excerpt() not working in custom archive
- WordPress get_posts function, 1300 lines long
- What is the most efficient way of querying posts based on visits and date for current day?
- Initiating WP_Query() with no args and adding them later through the query() method
- Pagination custom query
- WP_Query and name__in
- WP Query with offset breaks wp_pagenavi or any pagination
- Show list of authors with latest post NOT older than a month
- Unable to combine “search value” and “tax_query” using WP_Query
- How to extend tag and category “Related Posts” query to custom post_type if the first 2 terms have no posts
- WP_Query or get_posts?
- How do you query wordpress posts using a math formula between multiple meta field values?
- Interupting the loop with extra divs to display data, and how to get it to work responsively
- Custom category search box for WordPress
- Sub-loop / nested loops Best Practices
- How to echo data after a WP_Query
- Query all published post AND attachment with specific mime type
- WP_Query returns random number of posts
- How do I get the title of a category in a custom loop?
- Load More Posts Button – AJAX
- Is it a good idea to improve meta query performance by adding tax query?
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- How to display user order by role
- How to list custom fields as headers and list all pages sharing that custom field under it?
- Best practice for query_posts in responsive design?
- hide custom post types with specific meta key ON admin backend
- Orderby listing issue
- Current post in AJAX call is always zero
- Multiple filter conditions for WP_Query
- Get all fields inlcuding “ACF” (Advanced Custom Fields) columns in wp_query
- why does not my wp_query work?
- How to access custom WordPress database tables
- WP_query : Force last posts number over Reading Settings
- How to set an alternate posts_per_page value for default queries in different templates
- WP Query – posts only by specific user
- how can I get seperate the HTML in the_content(); output?
- Is wp_reset_postdata always necessary?
- WP_QUERY with group by with custom fields
- Loading two different AJAX requests on two different pages
- Query posts using less than
- Loop categories by recent post
- How to add WordPress featured image via SQL
- Using WHERE on a WP_Query
- Insert images into wordpress post with a query
- How to apply pre_get_posts to a custom query?
- How to pass the current content of $wp_query to a new page?
- WP_Query retuning empty array in rest api
- Query post ordered by meta value that show first post that contained a tag
- WordPress Ajax form filter | Search by title with ajax form, breaks the other filters
- Query posts by post type, author and post meta
- Show child by slug, while knowing parent ID
- pre_user_query vs pre_get_posts
- Can I alter the main loop to ‘orderby’ a custom callback?
- How can I filter products by meta in Woocommerce REST API?
- Query for getting posts with their custom fields data in WordPress
- WP_Query not returning any posts
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- Custom WordPress post query for displaying time-released content on website
- How to delete a complete forum topic from root folder in wordpress
- Slow Query with more 100 products
- meta_query is not allowing to show posts when querying multiple arguments in a WP_Query
- Showing the correct number of posts_per_page when avoiding the use of post__not_in
- Inline Ajax call after term is appended with a @ or # etc. displayed in div
- Passing conditional arrays to WP_Query() [closed]
- Query custom post type by date field only working when two posts match the query
- Why isn’t my Meta_Query running?
- How to specify a certain amount of images queried, not all?
- wordpress sorting using array merge by price in ascending order but price with 0 must be show last
- Carousel Loop only duplicating
- Remove divs and spans from post content
- How to show featured post first, then separate loop for other posts
- error with $query->have_posts()
- WordPress extremely slow when using get_posts with multiple meta_query relations
- Search results stuck on page 1