I'm debugging a query created by the Post widget of Elementor, it should exclude the post with id 12419. I see the
[post__not_in] => Array
(
[0] => 12419
)
inside the [query] part, but the post is returned by the query (as you can see below from the dump of the query object).
WP_Query Object
(
[query] => Array
(
[posts_per_page] => 20
[paged] => 1
[post_status] => publish
[post_type] => post
[orderby] => post_date
[order] => desc
[ignore_sticky_posts] => 1
[post__not_in] => Array
(
[0] => 12419
)
)
[query_vars] => Array
(
[posts_per_page] => 20
[paged] => 1
[post_status] => publish
[post_type] => post
[orderby] => post_date
[order] => DESC
[ignore_sticky_posts] => 1
[cache_results] => 1
[update_post_term_cache] => 1
[lazy_load_term_meta] => 1
[update_post_meta_cache] => 1
[comments_per_page] => 50
)
[tax_query] => WP_Tax_Query Object
(
[relation] => AND
[primary_table] => wp_posts
[primary_id_column] => ID
)
[meta_query] => WP_Meta_Query Object
(
)
[request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_date DESC LIMIT 0, 20
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 12419
[post_author] => 7
[post_date] => 2021-07-30 14:04:14
[post_date_gmt] => 2021-07-30 12:04:14
[post_content] => [post_title] => Attacchi di Panico: Cosa Sono, Sintomi, Cause, Conseguenze e Cura
[post_status] => publish
[comment_status] => open
[ping_status] => closed
[post_name] => attacchi-di-panico
[post_modified] => 2021-07-30 14:04:20
[post_modified_gmt] => 2021-07-30 12:04:20
[guid] => https://www.psicocultura.it/?p=12419
[post_type] => post
[filter] => raw
[word_count] => 2601
[permalink] => https://www.psicocultura.it/attacchi-di-panico/
)
[1] => WP_Post Object
(
/*...*/
)
[current_comment] => -1
[found_posts] => 137
[max_num_pages] => 7
[is_home] => 1
[query_vars_hash:WP_Query:private] => 4c5b129a335cdd7e2b67ea909788224a
[query_vars_changed:WP_Query:private] => 1
[compat_fields:WP_Query:private] => Array
(
[0] => query_vars_hash
[1] => query_vars_changed
)
[compat_methods:WP_Query:private] => Array
(
[0] => init_query_flags
[1] => parse_tax_query
)
)