Tag Archives: custom post type

Filtering WordPress Search Results by the Page Post Type

Tacking a post_type parameter to any search URL in WordPress filters the search results by a post type. For example: http://example.com/?s=speak+easy&post_type=events Will return only events which include the terms speak and easy. But when setting the post_type parameter to page, something unusual happens. … Continue reading

Posted in WordPress | Tagged , , | 1 Comment