Pages within WordPress can have different page templates, selected via Page Attributes ⇒ Template. Most pages use the “Default Template” but a variety of special page templates are available within Egyptological Online and change the behaviour and layout of any page specified to use them. The most important templates are:
- Custom Query Excerpts Plus Content
- This page template is a significant development of the Custom Query Excerpts template supplied with the Hybrid theme which allows richer queries. Use this template to show:
- the content of the page; and
- the thumbnail and excerpt of the posts which match the specified Query.
The Query is specified as the value for a Custom Field called Query, for example ?category_name=journal&year=2011&month=1 using WordPress query_posts() references. (The leading question mark is optional.)
Using &excerpt=no specificies a compact format which includes neither excerpts nor thumbnails, for instance ?category_name=’articles’&orderby=title&order=asc&posts_per_page=-1&excerpt=no
Source: page-content-plus-excerpts.php within the Kandie Girls theme.
- Main Menu
- This is a special page template used by a single, special page (called Main Menu) which displays only the Main Menu so that can be included into sites on other domains (e.g. Egyptopaedia).
- Redirect
- This template redirects the browser to the URL specified in a Custom Field caled Redirect. There is some incompatibility with the caching plugins and by preference this page template should be avoided. If it is used, a caching exemption should be established.
- Source: page-redirect.php within the Hybrid parent theme.