查看WP_Query reference.
For parameters.
Date Parameters.
$args = array(
\'author\' => 123 ,
\'date_query\' => array(
array(
\'after\' => \'January 1st, 2013\',
\'before\' => array(
\'year\' => 2013,
\'month\' => 2,
\'day\' => 28,
),
\'inclusive\' => true,
),
),
\'posts_per_page\' => -1,
);
$query = new WP_Query( $args );
要了解字数,请查看此
post. 它有一种快速的方法,使用explode获取帖子内容,然后使用explode和count。