forum share
   textsms      forum    

Articole/intrebari

INDEX \ Articole/intrebari \ Exclude Pages from WordPress Search Results

Exclude Pages from WordPress Search Results

text_format+  text_format-


/* Exclude pages from search /.. */
function SearchFilter($query) {
if ($query->is_search) {
    $query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','SearchFilter');
/* ../ Exclude pages from search */




update Ultima actualizare: 22/01/2017
done Informatiile cuprinse in aceasta sectiune sunt verificate si actualizate periodic.

list Articole recente
arrow_back Inapoi


© 2019 EVIDWEB. Toate drepturile rezervate. Design: EVIDWEB
Certified partner with GlobeSSL

share  forum  textsms