WordPress Custom Content
Rick Tuttle, Papasoft @ricktuttle
Refresh South Florida + WordPress
September 8, 2011

Hi There

Rick Tuttle

Connect

rick@papasoft.com

@ricktuttle

Old Dog. New Tricks.

Times and Technologies Change

HTMLCSSJAVASCRIPTPHPMYSQLASP.NETC#RAZORSQLSERVER JAVAAPACHELINUXAGILETOMCATIISPERLSMALLTALKBASICDOS

Competitive Edge

I need to be fast, affordable & adaptable. That's why...

I ♥ WordPress

Been together since 2005

WordPress = Content Management

WordPress Database

Simple. Extensible. Not over-engineered.

Built-in Post Types

Posts

Pages

Also: Attachments, Revisions, Menu Items

Back In The Day

Custom Content Hacks

Since Version 2.9/3.x

Lots of Choices

Custom Post Types

Features

Usages

Listings, Employees, Products

Custom Taxonomies

Create categories or tags that apply only to a particular post type

Custom Post Types: Plugins

Plugins

Example Plugins

Custom Post Types: DIY

Create a plugin or add code to your theme's functions.php file.

  1. Register your CPT
    register_post_type()
  2. Register custom taxonomy (optional):
    register_taxonomy()
  3. Add meta boxes for custom fields:
    add_meta_box()
    add_action('add_meta_boxes', 'my_meta_box')
  4. Add code to save your custom fields:
    add_action('save_post', 'my_save_method')

Template Hooks

Post Formats

Customize the Display of Posts

Examples

Best Practices

More Info

/

#