$args = array (
'post_type' => 'post',
'post_status' => 'publish',
'date_query' => array(
'column' => 'post_date',
'after' => get_the_date()
),
);
$posts = get_posts( $args );
$counter = 0;
foreach ($posts as $post) {
if ($counter == 3) break;
var_dump($post);
$counter++;
}
function my_format_TinyMCE( $in ) {
$in['keep_styles'] = false;
$in['paste_remove_styles'] = true;
$in['paste_remove_spans'] = true;
$in['paste_as_text'] = true;
$in['plugins'] = 'wordpress,wplink,paste';
return $in;
}
add_filter( 'tiny_mce_before_init', 'my_format_TinyMCE' );
register_post_type();
meta_query