I have related post section in my theme. I would like to exclude posts from a certain tag.
This is my query:
'post__in' => $related_posts_ids, 'orderby' => 'post__in', 'posts_per_page' => $max_posts_to_show, 'ignore_sticky_posts' => true,
Using tag__not_in is working but the number of posts doesn't stay same. I mean, total number of posts is 6. After excluding 1 post from that tag, total number of posts becomes 5.
If I remove the post__in, number of posts stays same but then related post section doesn't work as expected.
Is there a way to keep post__in, exclude posts from a certain tag and keep the number of posts same?