Search model with conditions

Hello, is it possible for search model results not to include pages but only posts?

Thank you

Hello @JacobZac,

Thank you for the inquiry.

Are you referring to the default search form? According to the following article, this is possible using the SearchWP plugin. Please check the link below for more info.

https://www.wpbeginner.com/wp-tutorials/how-to-exclude-pages-from-wordpress-search-results/

You can also try these plugins:

https://wordpress.org/plugins/search-exclude/
https://wordpress.org/plugins/exclude-pages-from-search-results/

Let us know if you need more info.

Best regards.