So, let me clarify as I think I wasn’t quite good in explaining what I’d like to do. Sorry, it’s still difficult to explain these kind of things in a foreign language.
My front page is set to display recent posts. I want the front page to show all my posts connected to the category “front-page” in masonry style.
Then there is a second site, let’s call it “Blog” which I’d like to show posts connected to the category “blog” – neither in the column-style, nor in the masonry style.
I used your linked example with “is_front_page() && is_home()” as condition. Now the front page is in masonry – perfect!
I found a snippet which I think would be necessary. It filters out all the entries which should only show up on the “Blog”
add_action( 'pre_get_posts', 'my_home_category' );
function my_home_category( $query ) {
if ( $query->is_front_page() && $query->is_main_query() ) {
$query->set( 'cat', '1');
}
}
Now, I just need to “activate” a feature, so that the “Blog” site show my posts too, instead of just the front page. I think I could apply the same code as inserted above to filter out the posts which should only show up on the other site.
Thank you again for your awesome help!