Problem with custom loop and wp_list_pluck [closed]

Problem solved!

You need to change this part of code before 3rd query… it will merge you previous queries and exclude posts from them:

$first_grid_posts_ids = wp_list_pluck( $first_grid_query->posts, 'ID' ); 
$second_grid_posts_ids = wp_list_pluck( $second_grid_query->posts, 'ID' ); 
$allTheIDs = array_merge( $first_grid_posts_ids , $second_grid_posts_ids );
$third_grid_query = new WP_Query(
                        array(
                            'posts_per_page'=>4,
                            'post_type' => 'post',
                            'cat' => get_query_var('cat'),
                            // Add the post ids from the first and second loop
                            'post__not_in' => $allTheIDs
                        )
                    );