title: How to filter post types with a select field?
body: <p>I'm working on a Wordpress project and have a question.
  I have a layout like shown below in the link to screenshot 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?</p>
  
  <p>Thanks in advance.
  <a href="https://i.stack.imgur.com/3HnDF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3HnDF.jpg" alt="layout with post types"></a></p>