I am by no means an AJAX expert, I have only ever used for pretty much what you are needing it for. It can be quite a lengthy explanation for a forum post. But when I was trying to achieve the same thing the first time, I found this excellent YouTube video series (5 parts) by Brandon Brotsky on how to filter custom post types using AJAX. Even if your only filtering regular posts and not using ACF, you should be able to use his method to filter posts by date or title in ASC or DESC order. Actually it should be easier than what he is doing in his video.
https://www.youtube.com/watch?v=e5tUkHczcVE
I know it’s probably not the answer you were hoping for, but I think you will find his video helpful to some extent.
Related Posts:
- Random sort within an already sorted query
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Exclude posts with specific meta_value while sorting by a separate meta_value
- AJAX filter posts by year
- Ajax load more button in Recent posts widget
- WP_Query with ajax handler returns the same posts
- Random ajax load only works with posts_per_page set to -1
- how can i change WP main archives loop to sort by name or title
- how to get post order by post id wp_query?
- wp_query with ajax
- How to sort WP_Post Object array by object field in php?
- WP_Query extended with AJAX
- Sort / Filter Queries
- custom sort posts in archive/taxanomy page
- Get current post id in functions.php
- Setting Custom Sort Order of Posts within a Category
- Can I force a metabox to be in one column?
- Search by Hyphen
- Exclude drafts in all() view of edit.php
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Keep getting same permalink with WP_Query?
- How to query posts with current or future date only
- WordPress Number of Posts Not Changing With posts_per_page
- Create new WordPress post [wp_insert_post] based on results of a WP_Query
- POST from jQuery to PHP
- Display the latest posts, published in the last hour, with WP_Query
- Custom Order in WP Query
- Fetch posts from current week (Sunday to Saturday)
- Search query – exact post title match
- Converting multiple loops into one single loop with pagination
- How would I get 1 latest post from a query for 5 posts?
- How to get most recent commented post above new submitted post in WordPress?
- Exclude posts with empty post_content in wp_query
- Exclude posts from featuring
- Lazy Load using WP_Query pagination
- Only display a certain number of posts, dependent on how many posts there are available in a query
- Server-side sorting of posts
- Automatic post deletion
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- How to pass Post_ID variable from theme’s Single.php to custom Plugin using AJAX
- Yearly archive page for future year
- How can I show many posts an author has per week?
- WP_Query orderby not working with meta_value_num and menu_order
- Custom WP_Query with complex ‘post_status’ argument
- is there a way to show the the post title after the image?
- How do I correctly set up a WP-Query to only show upcoming event-posts?
- Blog post per page setting conflicting with custom WP_Query?
- How to exclude latest x posts from a paginated query?
- Ajaxify This Code
- Select only post id and meta value with WP_Query
- Send post id through ajax and get the post content back
- Query Posts With Over 1000 Views
- Adding a blog archive with pagination using WP_Query
- How to get Tags with specific post id
- Show posts by author of membership level (Paid Membership Pro)
- How to get posts published on the latest date?
- Why posts array is empty?
- Lock post editing to one user at a time – wp_check_post_lock
- How to check in functions.php if there is data in a WP_Query?
- Post filtering is returning blank page
- How can I insert a new markup element after 4 posts automatically? [closed]
- If no posts exist for current day and month, show the next available day of posts
- how to handle the loop using filling bootstrap grid structure?
- wp_query if have posts show date but not in loop
- Query function not executed between element [closed]
- How to display WP Query filters?
- Finding a post’s slug
- Is there a function to get post info for any publish_status by post ID?
- How Can I Always Display A Particular Post First Using WP_Query?
- Optimal WP Web App Backend for mobile app development
- How do I display main query posts in random order using add_filter
- Why sorting posts doesn’t work properly?
- WordPress sorting posts by date and title using a dropdown
- the wp_post_update isn’t working all the time
- Passing values via an Ajax querystring
- query posts with selected post ids first
- Change URL of previous posts and next posts link in WordPress
- WP Ajax returning 0, can’t find action
- How to invoke a HTML custom button based on a HTML dropdownlist menu
- Order posts inside bootstrap card columns
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Counting Posts by Category
- show image gallery in archives or category page
- Page with Category Returning 1
- The first post appears twice
- Ajax post doesnt call succes after got the response
- wp_query args with relation
- WP_Query sort by meta_value_num or date
- Custom layout manager for posts
- Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?
- Get post id on click of thumbnail
- Can’t get pagination to work
- How to get single post by one author?
- Order by ‘s’ using WP_Query()
- how to print loops for odd in 1st column and even in 2nd column in wordpress [closed]
- Ajax calls in wordpress
- Next and Previous buttons are not showing on home page for post
- How edit footer copyright info? [closed]
- How to make ‘show_option_all’, that comes from wp_list_categoreis, to work with get_categories or with get_terms?
- Get related posts matching most of the provided tags using WP_Query