How to include all public post types in WordPress search

This snippet will automatically include all public post types (that have not been excluded from searches), in your search results.

Instructions
Add this to your functions.php file

Comments

Leave a Reply

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

Siteground Web Hosting