Tag Archives: Get_search_form()

Limit WordPress Search Results to Certain Post Types

WordPress built-in search function searches all post types by default. Sometimes, we want to have some controls over what should be searched and what not. For example, on a blog website, I pretty much want to limit the search within “post” post type, but ignore “page”.

Continue Reading →