Wait for a new life!
Block or Report
Block or report gioacchinopoletto
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
Wordpress, excude some pages from se...
Wordpress, excude some pages from search 1/* Exclude some pages from search */
2function gp_search_filter( $query ) {
3if ( ! $query->is_admin && $query->is_search && $query->is_main_query() ) {
4$query->set( 'post__not_in', array( 39,41 ) ); // add page ID's
5}
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.