Exclude Posts Pages or Specific Post from Search Result in WordPress

By | July 6, 2016

Hello WordPress Developer
Sometime you may have requirement or your client requested to exclude specific post, page fro WOrdpress search result or completely Exclude Posts or Pages or Custom post type records from search result and display search records only records from specific post type like Posts or Pages or CPT than you can achieve it by adding following few line code in your active theme fucntions.php file