With Tracy Levesque / @liljimmi
WordPress uses the Query String — information contained within each link on your web site — to decide which template or set of templates will be used to display the page.
Name a template file a certain way and it will automatically apply to a certain page.
Power users - Look for themes or theme frameworks.
Designers - Make them yourself!
The Loop is PHP code used by WordPress to display posts.
The Loop is a set of instructions in a template that grabs content and displays it on a page.
Main components
Additional content, aka Metadata.
Instructions
moviefanfare.com example.
Power users - Look for themes or theme frameworks.
Designers - Do it yourself! Check out The Loop in Action.
A Custom Type is a Post Type you define.
More than the usual Pages and Posts.
Pages and Posts are both Post Types
Custom Taxonomies
Custom Post Type:
Custom Taxonomies: Genre, Year, Director and Rating
3 custom post types: Products, Stylists and Tips
Power users - Use a plugin.
Designers - Code your own. Custom Post Types for Designers
Hooks are provided by WordPress to allow your plugin to 'hook into' the rest of WordPress...There are two kinds of hooks:
- Actions: A custom PHP function defined in your plugin (or theme) and hooked, i.e. set to respond, to specific events that take place in WordPress.
- Filters: Functions that WordPress passes data through, at certain points in execution, just before taking some action with the data
Hooks, Actions and Filters allow you to change WordPress functionality without breaking it.
Hooks - Points at which WordPress allows you to tap into a function and safely modify it.
Actions - A hook that makes something new happen when a WordPress function is triggered.
Filters - A hook that modifies a WordPress function when it is triggered.
Demo time!
Make WordPress great!
Power users - Use plugins
Designers - Add functionality! WordPress Codex on Theme Development.
Slides available on Slideshare: slideshare.net/TheTracyL