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
- Including categories in search results
- Count how many posts in category
- Custom Single Post By Category
- Ajax Load More Posts in Category Page
- Convert custom fields to post categories
- Query posts from current year
- Can I load posts via Ajax?
- This AJAX Code Doesn’t Work – Looking for elegant solution
- Show One Category on Post
- Do I use custom post type or something else?
- 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
- Limit function to specific post category
- Show all post titles
- Add Category name to Post Title (h1)
- Posts are not showing up on particular category
- How to display related posts by subcategory and not parent category
- Category Template: Need to display different content on first page of archives
- How to display WordPress archive into three columns [closed]
- Display post category in foreach loop with category link
- Extracting post categories
- How to limit posts by category
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Ajax post filters not working
- Get user categories with most posts in it
- Loading post with Ajax
- How to list recent posts in a wp nav menu?
- How to display two blog categories as separate sections on one page?
- why does wordpress ignore the post args?
- get posts from Custom Post Type & Category
- Category page when using static front page
- How to enable custom Shortcodes in Post Category Description? [duplicate]
- Sort by last word in title
- How to call posts under a specific category on static front page?
- Give posts a particular template based on the assigned category
- Using AJAX and PHP to load next post object
- Post-Archive like a page in a specific subdirectory
- How to display only one category in a custom post type?
- Get only X number of categories
- inserting a category into post
- Getting posts from some categories plus some individual posts
- Change layout of post depending on category
- latest post showing up twice on posts page
- wp_list_categories() Exclude All Categories Except One
- Highlighting Current Category in the Archive and Feeds page
- Get current taxonomy and display query accordingly
- Different post views for different category views
- Possible?! A contextually titled back link
- Allow / show post comments in category pages
- Display a specific category in a focused area of my site
- How to select a category automatically based on a word in WordPress post title?
- Display default matabox of posts(add category) wordpress
- How display related post only in Default category on single
- How to get tags when using publish_post
- How to add class to specific navbar item when post parent category is in specific category
- How do you change the permalink for posts for a single category?
- Posts are not displaying on their category and tag page
- how to create a category with wp_insert_post and post_category
- WP Ajax returning 0, can’t find action
- Exclude posts in a category on one page but show those posts on a different page
- How to add a block to a category page?
- Excluding category from post navigation in WordPress?
- show image gallery in archives or category page
- Page with Category Returning 1
- Ajax post doesnt call succes after got the response
- Order result from ajax
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Post Category link is same with Page link
- Show custom post category for single post
- Get a list of categories that are related to posts
- Get Categories & Posts With Type Article
- Set multi posts random categories and tags
- Add new post only in assigned category
- Changing the Category for all posts of an Author
- Custom plugin to get related posts by category
- Admin Post List Only Show One Category
- Add category attribute to custom recent post shortcode
- Same sidebar in all posts as in the category
- How do I list categories and the common categories for posts beneath those categories?
- Latest Posts not in the right order
- Retrieve latest post by multiple categories with ID
- Get post id on click of thumbnail
- How to Include a common category in a custom Category Search
- How to display only one post on first category page and rest on next pages?
- how to style an individual page in a category [duplicate]
- Viewing category won’t show up Custom post type posts
- Show Title/Date/Excerpt of first post & only Title for rest in Query [duplicate]
- Listing category and its posts one by one
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Show some texts in posts belonging to Specific category