No there is no such premade code to load posts based on which categories are selected without reload the page content. There are two option you can imply.
Option 1: Using Ajax
Option 2: Loading all the content and hide/show using CSS & jQuery tricks
Note: Option 2 increase your initial load time as you need to fetch all the content from all the category and show some post initially with CSS tricks. And on click of the specific category you can then with help of jQuery & CSS you can manipulate the display.
Related Posts:
- Show Custom Taxonomy Categories, Listing of Posts, and Single Post via AJAX
- Add ajax load more function using WP API
- Using ajax on editing a category edit page?
- Dynamic dependent Dropdown lists for categories, sub-categories and posts
- How to make ajax load posts from the current category?
- how to filter posts by category without page load (ajax) in wordpress?
- AJAX load more posts not using correct category and repeating the same few posts
- Ajax – Post Categories and Load More
- Get Posts Under Custom Taxonomy
- How to display related posts from same category?
- How to make comments work for a post loaded per Ajax?
- How to show related posts by category
- How to add category to: ‘wp-admin/post-new.php’?
- Including categories in search results
- Use category base slug in posts’ permalink
- Different post sort order within different categories
- Count how many posts in category
- Custom Single Post By Category
- Setting Custom Sort Order of Posts within a Category
- Ajax Load More Posts in Category Page
- How to get the number of posts in a selected category?
- MySQL Query to Retrieve Category from wp_posts
- Different number of posts in each category
- Display all posts from specific categories on a page
- Display the latest post from a category in a page
- How to show list of posts by author and category?
- How to load paginated post pages via ajax
- Getting the post_id in wp_ajax function
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Category checkbox list tree changes when editing a post
- How to add metabox for post of specific category
- Convert custom fields to post categories
- Manipulate post category after time
- Show related posts by category but ignore one category
- How to sort posts by last name (2nd word) on ONE category only?
- How to disable Uncategorized category URL?
- Add role that restricts user to post in specific category
- How to get Category Id from Post Id ?
- Count posts in category including child categories
- Query posts from current year
- Getting Position of a post in a category
- Display only posts from a specific parent category
- How to control which category will be picked for the slug of a post?
- Categories box not showing on post edit pages
- Can I load posts via Ajax?
- get_the_term_list by hierarchy order
- Load posts dynamically
- How to change the layout and styling of posts according to their category in WordPress?
- How to load post content on index page using ajax when post title in sidebar is clicked
- How to use oEmbeds on Post Content during AJAX requests
- List only child categories a post is in, of a specific parent category
- Add default content to post (for specific category)
- Query only Posts from Both of Two Category?
- Add custom field to all posts in specific category
- Exclude category on blog list page
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Cannot access current post’s ID in custom plugin
- display sub categories assoccited with each post in a category archive page
- is there a better way of combining this?
- Display most recent post in category instead of archive?
- How can I specify a category post on my home page
- Single.php Active Category Class
- Most efficient way to list all categories and display a post for each of them?
- Archived Posts in Wrong Category
- Show One Category on Post
- Use template of parent category for single post sub-categories
- prevent showing posts of an specific category in admin posts section
- How to choose a sort order (for posts) per category? (ideally when creating a new category)
- Load post content into div with ajax
- POST from jQuery to PHP
- wp_list_categories link to first post of category instead of calling taxonomy template
- How to search only by post title and category?
- Add custom field to category of custom post type
- WordPress Child Category Display All Posts
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- “Uncaught SyntaxError: Unexpected token
- get_post_type_archive_link(‘post’) returns current category archive
- Display all posts under child sub category in sidebar on post page?
- Do I use custom post type or something else?
- Can I hide a specific post from latest posts page?
- How do I get the slug of a custom taxonomy category of a post?
- What Defines What Category A Post Picks (if in multiple)
- Featured Posts for Category Pages
- Auto set Post to Specific Categories
- Limit function to specific post category
- Permalink Settings: optional settings doesn’t apply to editor
- WordPress theme ajax have_posts()
- How to show post(excerpt) from specific category on wp page?
- How to Add ‘Post Categories’ to the Dashboard Sidebar
- New blog template to display only one category
- Authors in menu, template list post by author
- Get user’s most published categories
- Show all post titles
- The correct way to call posts with ajax
- How only display all post related to category
- WordPress – Admin Manage Posts – Multiple Filters by Parent Category
- Custom Theme Want To Remove One Category From All Displays
- How do I use Ajax to show the new posts realtime, on the frontpage
- Add Category name to Post Title (h1)
- WordPress menu that shows all posts in a certain category like w3schools