Something is wrong with one post
Info about post:
ID: 8619
post_author: 1
post_date: 2014-02-28 15:56:08.000000
post_date_gmt: 2014-02-28 13:56:08.000000
post_title: 2014 02 28
post_status: publish
ping_status: open
post_name: 2014-02-28-2
guid: http://example.lt/?post_type=newsletter&p=8619
Query:
$args = array (
'p'=> 8619,
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
var_dump(get_the_content());
}
} else {
}
wp_reset_postdata();
And I'm not getting post, something if wrong with post data, because if I change id to any existing post all is ok.