Custom post types are not included in the WordPress search results by default - this snippet allows specific custom post types to be queried and searched by WordPress.
Tag: pre_get_posts
This WordPress snippet will automatically include all public post types, that have not been excluded from searches in your search results.
This snippet will allow you to control which WordPress posts or pages there should be excluded from WordPress search results.
This snippet will show you how to extend the WordPress search function to include custom post meta.
Recent Comments