Warning: is_file(): open_basedir restriction in effect. File(/var/www/s-fedorenko1/data/www/wp-admin.top/wp-content/cache/hyper-cache/wp-admin.top/wordpress/index.html.gz) is not within the allowed path(s): (/var/www/s-fedorenko11/data:.) in /var/www/s-fedorenko11/data/www/wp-admin.top/wp-content/advanced-cache.php on line 137 Wordpress - WP-Admin.Top
Excluding a category (or categories) from the WordPress search results is easy peezy, however, that doesn’t stop most of the snippets I’ve found from doing it wrong. add_filter( 'pre_get_posts', 'ja_search_filter'