Upload
david-tufts
View
118
Download
3
Tags:
Embed Size (px)
DESCRIPTION
In this advanced development session we will review how to create structured data for your WordPress website by using Custom Post Types, Custom Taxonomies, and Custom Fields.
Citation preview
The 3Cs of WordPress
@davidscotttuftsdavidscotttufts.com
A Custom Trifecta
About Me• Born and raised in Brazil• Live in Grand Rapids, Michigan• 1 beautiful wife• 6 great kids (5 boys and 1 girl)• Co-founder at Rocketwood• Web Producer at RBC Ministries• Developing KickPress, a WordPress plugin
The Sweet Smell of Success
Graph by Francesco Schwarz
After 2 years with WordPress on odb.org• From 2.1 million to 5 million page views per month
• From 0 to 140,000 subscribers to daily email
•Over 50% increase in web donations
•Over 110,000 mobile app sales
•Over 140,000 Facebook fans
• 40% less hardware
• 30% savings
WordPress Powers 16.7% of the Web
WordPress Evolution
1. Blog2. Multi-User3. CMS4. What’s next?
Illustration by Rob Green
State of the Word 2012
Slide from Matt Mullenweg’s presentation
What’s Next for WordPress
• Web App Engine?• Enterprise Grade Systems?• Public Facing APIs with
OAuth Integration?
Structured Data
The Building Blocks for Structured Data
• Custom Post Types• Custom Taxonomies• Custom Fields
What about Post Formats?
Custom Post Types
Custom Post Type management• Maintain custom post types in
the functions.php file?• Create a unique plugin for your
site’s custom post types?• Use a third-party custom post
type plugin?
Photo by Brad Coy
Advanced custom post type management
Post• ID• post_author• post_date• post_content• post_title• post_excerpt• post_status• post_content• post_type• Etc.
Post Meta• meta_id• post_id• meta_key• meta_value
Terms• term_id• name• slug• term_group
Term Taxonomy• term_taxonomy_id• term_id• taxonomy• description• parent• count
Term Relationships• object_id• term_taxonomy_id• term_order
WordPress Database Structure
People• ID• first_name• last_name• email_address• home_phone• cell_phone• birthday• Etc.
The Illusion of Structure
Hobbies• ID• name• description
People Hobbies• people_id• hobbies_id
CustomPost Type
Custom Fields
CustomTaxonomy
Custom Post Type Options
Do it yourself:http://codex.wordpress.org/custom_post_typeshttp://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
Get a plugin:http://wordpress.org/extend/plugins/tags/custom-post-types
Custom Fields - Good
Custom Fields - Better
How to create Custom Meta Boxes• http://codex.wordpress.org/Function_Reference/add_meta_box• http://wp.smashingmagazine.com/2011/10/04/create-custom-post-meta-boxes-wo
rdpress/
• http://wp.tutsplus.com/tutorials/plugins/how-to-create-custom-wordpress-writemeta-boxes/
Custom Fields - Best
Advanced roles and capabilities for managing user permissions
Popular Web Apps
Features of Web Apps Offer a service Safe-keeping of your
personal data Access to your personal
data through an API Roles and permissions
for controlled and/or restricted access
With no API, users are limited in how the can access their data
Illustration by Eric Tufts
Illustration by Eric Tufts