回答:
get_posts()と同じ引数を使用するため、使用できますWP_Query。
IDを渡すには、'post__in' => array(43,23,65)(配列のみを使用)を使用します。
何かのようなもの:
$args = array(
    'post__in' => array(43,23,65)
);
$posts = get_posts($args);
foreach ($posts as $p) :
    //post!
endforeach;私はまた、設定したいpost_typeとposts_per_pageちょうど良い測定のために。
post_type引数を使用し、5つ以上の結果が必要な場合は'nopaging' => trueオプションを追加します。配列ではなくカンマ区切りの文字列がある場合は、配列explode(',',$input);に変換するために使用します。
                    array、必ずに追加'order_by' => 'post__in'してください$args。
                    post_typeパラメーターの使用には注意してください。の場合post、関数はだけでなく、カスタムのものを含むすべてのコンテンツタイプを返しますpost。
                    上記が機能しない場合は、必ず追加してくださいpost_type:
$args = array(
    'post_type' => 'pt_case_study',
    'post__in' => array(2417, 2112, 784)
);
$posts = get_posts($args);
get_posts()codex.wordpress.org/Template_Tags/get_postsの 'include'引数を使用しようとしましたか?