Difference between revisions of "Week Eight (MGDP2060)"
Karl Jones (Talk | contribs) (→WordPress Page Templates) |
Karl Jones (Talk | contribs) |
||
Line 26: | Line 26: | ||
See [[WordPress Template]]. | See [[WordPress Template]]. | ||
+ | |||
+ | == The Loop == | ||
+ | |||
+ | The [[WordPress Loop|Loop]] is [[PHP]] code used within a [[WordPress Template|Template]] to display [[WordPress|Posts]]. | ||
+ | |||
+ | See [[WordPress Loop]]. | ||
+ | |||
+ | == Template Tags == | ||
+ | |||
+ | [[Template Tag|Template Tags]] are units of [[PHP]] code used within [[WordPress Template|Templates]] to display various types of information. | ||
+ | |||
+ | See [[WordPress Template Tag]]. | ||
== Exercises == | == Exercises == |
Revision as of 19:55, 11 October 2016
This article lists topics for Week Eight of Web Design and Development III (MGDP2060).
Contents
Update: WordPress Page Templates
Don't use Page Templates with Pages selected for the Static Front Page or the Static Posts Page -- doing so causes the CSS to fail.
The same is true when using the Static Posts Page option.
See WordPress Home Page.
WordPress Templates
A WordPress Template is a PHP document which controls how WordPress content is displayed.
Template hierarchy
All themes must include the Template file named index.php
.
Additional WordPress Templates form a hierarchy, overriding index.php
for specific types of information.
See WordPress Template hierarchy.
Most WordPress Themes include Templates named header.php
and footer.php
, which are included in all of the other Template files.
See WordPress Template.
The Loop
The Loop is PHP code used within a Template to display Posts.
See WordPress Loop.
Template Tags
Template Tags are units of PHP code used within Templates to display various types of information.