Support » Plugins » using get_pages() to get the page template attribute?

  • Resolved dzeriho

    (@dzeriho)


    hello im wondering how to get the page template attribute..can i do this using get_pages()?

Viewing 1 replies (of 1 total)
  • ok what i needed is $pages = get_pages( array()), then each page needed the template name in a var..
    ive solved it with
    $type = get_post_meta( $page->ID , ‘_wp_page_template’, true )

Viewing 1 replies (of 1 total)
  • The topic ‘using get_pages() to get the page template attribute?’ is closed to new replies.