How to filter post types with a select field?

I’m working on a WordPress project and have a question.
I have a layout like shown below with a select field and boxes with news (two or more different post types). I want to filter with the select the post type so there should show up only the selected. How can i do that wit the of .

Thanks in advance.
layout with post types

Read more here: How to filter post types with a select field?

Leave a Reply

Your email address will not be published. Required fields are marked *