Dapatkan halaman dengan Tempalte WP

$pages = get_pages(array(
    'meta_key' => '_wp_page_template',
    'meta_value' => 'page-template-vacature.php'
));
foreach($pages as $page){
    echo $page->ID.'<br />';
}
Andrew Lautenbach