Hi,
I like to add some services in the portfolio section wich not must displayed in the blogpage. I see to solutions to my problem:
1. Link the portfolio images on the frontpage to a page and not a post.
2. Exclude the category from the portfolio from the blogpage.
i added the following code in functions.php:
function exclude_category($query) {
if ( $query->is_home ) {
$query->set('cat', '-4');
}
return $query;
}
add_filter('pre_get_posts', 'exclude_category');
This will exclude the category from the blogpage but it will also remove the pictures from the portfolio.
I need some help please
sorry for my poor English

