-
Notifications
You must be signed in to change notification settings - Fork 6
Templating
daggerhart edited this page Mar 16, 2012
·
3 revisions
Template files control the majority of any query's html output. A single QW query will have at least 2 levels of file templates; the wrapper and the row.
Template hierarchy:
- Query specific template in theme directory
- Generic template in theme directory
- Generic template in
query-wrangler/templates
plugin directory
All templates can be overridden on a query-by-query basis by making use of the expected naming conventions.
Controls the general structure of the query's output, such as header, footer, exposed filters, etc.
Controls the style wrapper of the query rows.
Examples:
-
query-unformatted.php
- All queries with Row Style: Fields & Template Style: unformatted. -
query-table.php
- All queries with Row Style: Fields & Template Style: table. -
query-ordered_list-portfolio.php
- Queries with Row Style: Fields, Template Style: ordered list, and the slugportfolio
. -
query-excerpt.php
- All queries with Row Style: Posts & Posts Settings: Excerpt.
Controls the style of an individual row.