• Hey!

    As the title says, can I somehow modify the query_posts() to get all pages that has the page template of a specified file?

    Grateful for response!

Viewing 1 replies (of 1 total)
  • Page template is stored in the post meta using the key ‘_wp_page_template’ so you could probably match on that.
    Or use get_page_template() in the loop.

Viewing 1 replies (of 1 total)
  • The topic ‘Query to get all pages matching is_page_template('something.php");’ is closed to new replies.