-
Adam replied to the question Boss Theme XML updated files in the forum Boss. theme 8 years, 5 months ago
Hello,
I found an error in your code and corrected it.
function exclude_category_from_page($query) {
if ( $query->is_page(array(972))) {
$query->set(‘cat’, ‘-49 -50’);
}
return $query;
}
add_filter(‘pre_get_posts’, ‘exclude_category_from_page’);This still does not work . Am I ment to put ‘ ‘ around the page ID?
Regards,
Adam