I'm trying to get some posts from another blog but it won't work if I want them from a specific category.
switch_to_blog(1);
$replays = get_posts([
'post_type' => 'post',
'numberposts' => 10,
'category' => 1
]);
// Whatever ...
restore_current_blog();
It works as intended if I don't need a specific category though.
Is it the normal behavior ? Do I need to write a custom SQL query ?