Php Append参数在wp_get_recent_posts函数中不起作用

Php Append参数在wp_get_recent_posts函数中不起作用,php,wordpress,Php,Wordpress,我想将一些WP帖子附加到普通搜索函数中,但是当我运行WP_get_recent_posts函数时,在数组中使用append和posts id,我没有在结果中获得我想要附加的帖子,我做错了什么吗 $include = array(1, 2); $args = array( 'showposts' => 10, 'tag_id' => '123', 'post_status' => 'publish', 'excl

我想将一些WP帖子附加到普通搜索函数中,但是当我运行WP_get_recent_posts函数时,在数组中使用append和posts id,我没有在结果中获得我想要附加的帖子,我做错了什么吗

$include = array(1, 2);

$args = array(
        'showposts' => 10, 
        'tag_id' => '123',
        'post_status' => 'publish',
        'exclude' => $current_id,
        'orderby' => 'post_date',
        'append' => $include,
    );

    $entries = wp_get_recent_posts($args, 'ARRAY_A');
如果我删除tag_id参数,那么我想要附加的帖子就会包含在结果中,似乎WP也会用其他参数过滤附加的帖子,有什么解决方法吗