-
Add it to functions.php of your theme
-
<?php
-
add_filter( ‘pre_get_posts’, ‘cat_search_filter’ );
-
/**
-
* Exclude category 7 from search results.
-
*
-
* @param WP_Query $query Existing query object
-
* @return WP_Query Amended query object
-
*/
-
function cat_search_filter( $query ) {
-
if ( $query->is_search && !is_admin() )
-
$query->set( ‘cat’,‘-7’ );
-
return $query;
-
}
-
-
-
find . -name .svn –prune -o -print | xargs chown www-data:www-data
-
#Exclude another directory (cache)
-
find . -name .svn -or -name cache –prune -o -print | xargs chown www-data:www-data
“exclude” related tags
spirit’s tags
access apache apache2 apt arguments auditd auth awk backup backups bandwidth bash bridge cache cd charset cisco commands conversion cron css date debian debug default diff directories directory distance dns dom du eth ethernet excel exclude files find firefox flash forms function hacks headers history hosts htaccess html http https ie ifconfig images input ip javascript jobs kill latitude linux log logging longitude mac mail maps merge monitoring mysql network nginx openssl packages performance performances perl php red hat regex restore root route rpm script security server shell ssh ssl svn switch syslog tail trunk unix virtualhost vlan vmware windows yum
-