Page Templates in WordPress Themes

Page templates are a specific type of template file that can be applied to a specific page or groups of pages. Since a page template is a specific type of template file, here are some distinguishing features of page templates: Page templates only apply to pages, not to any other content type (like posts and custom post types). Page templates are used to change the look and feel of a page. A page template can be applied to a single page,...

Custom Archive Page for Your WordPress Themes

Why We Need the Archive Page In WordPress Themes, you get to work with a range of different page templates and structures in the standard configuration. Looking at the directory listing of the default theme at the time of writing, Twenty Fifteen, we find the following: 404 error page, archive page image attachments page, index page (the main page), default page template (for pages), search results page, single post and attachment pages. Despite their different purposes, all of these pages are...

3 Ways to Create a Page Template

What Is A Page Template? A page template gives you the ability to deviate from your site’s existing structure in addition to adding new features. Twenty Fourteen includes two great examples: a contributor page and a fullwidth page. The contributor page introduces new functionality: the ability to list the authors who have contributed to your website. The full width template alters the structure of the page by removing the sidebar, focusing more on content. Twenty Eleven also provides two page...