是否可以使用WP\\u Query或Query\\u posts创建帖子循环?
ie
$args = array(\'post_title\'=\'LIKE \'.$str.\'% \');
$res = WP_Query($arg);
// the loop...
// trying this now...
$mypostids = $wpdb->get_col("select ID from $wpdb->posts where post_title like \'Abb%\' ");
echo count($mypostids).", "; // works but can\'t echo out array of IDs for the next args?
$args = array(
\'post__in\'=> $mypostids
);
$res = WP_Query($args);
while( $res->have_posts() ) : $res->the_post(); ...