Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get pages with template wp php

$pages = get_pages(array(
    'meta_key' => '_wp_page_template',
    'meta_value' => 'page-special.php'
));
foreach($pages as $page){
    echo $page->ID.'<br />';
}
 
PREVIOUS NEXT
Tagged: #pages #template #wp #php
ADD COMMENT
Topic
Name
6+1 =