WordPress.org

Ready to get started?Download WordPress

Forums

Query to get all pages matching is_page_template('something.php"); (2 posts)

  1. joel.yourstone
    Member
    Posted 3 years ago #

    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!

  2. GRAQ
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.