WordPress.org

Ready to get started?Download WordPress

Forums

custom nav only to include pages based on template (2 posts)

  1. elementel
    Member
    Posted 5 years ago #

    I'd like to create a wplistpages that would include only pages built using a custom template I created for landing pages.

    So I edited a page.php to be just like I want and called it landing-page. Whenever the client wants to make a landing page they choose this from the template drop down within the pages section. Now, I want to create a set of links in the footer that only display pages that were made using that template.

    Is there any way to do this? My php sucks.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    A combination of get_pages and is_page_template might work.

Topic Closed

This topic has been closed to new replies.

About this Topic