Using Custom Post Types & Taxonomies in WordPress

58
LET YOUR CONTENT BE KING USING CUSTOM POST TYPES AND TAXONOMIES TO CONTROL YOUR CONTENT... PRESENTED BY DAELAN WOOD @daelan northrepublic.com [email protected] AND MAKE THINGS EASY FOR YOUR CLIENTS

Transcript of Using Custom Post Types & Taxonomies in WordPress

Page 1: Using Custom Post Types & Taxonomies in WordPress

LET YOUR CONTENT BE KING

USING CUSTOM POST TYPES AND TAXONOMIES TO CONTROL YOUR CONTENT...

PRESENTED BY DAELAN WOOD

@daelan

northrepublic.com

[email protected]

AND MAKE THINGS EASY FOR YOUR CLIENTS

Page 2: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Page 3: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

Page 4: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

Site Visitors

Page 5: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

Site Visitors (Your Clients Clients)

Page 6: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

Site Visitors

Site Administrators

(Your Clients Clients)

Page 7: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

Site Visitors

Site Administrators

(Your Clients Clients)

(Your Client)

Page 8: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

How can we make things easy for everyone?

Site Visitors

Site Administrators

(Your Clients Clients)

(Your Client)

Page 9: Using Custom Post Types & Taxonomies in WordPress

WORDPRESS AS A CMS

Who are the Primary Users of the Website?

How can we make things easy for everyone?

Site Visitors

Site Administrators

(Your Clients Clients)

(Your Client)

Page 10: Using Custom Post Types & Taxonomies in WordPress
Page 11: Using Custom Post Types & Taxonomies in WordPress

US

Page 12: Using Custom Post Types & Taxonomies in WordPress

VSUS

Page 13: Using Custom Post Types & Taxonomies in WordPress

VSUS THEM

Page 14: Using Custom Post Types & Taxonomies in WordPress

US

Page 15: Using Custom Post Types & Taxonomies in WordPress

Interested in technology.

US

Page 16: Using Custom Post Types & Taxonomies in WordPress

Interested in technology.

Willing to experiment.

US

Page 17: Using Custom Post Types & Taxonomies in WordPress

Interested in technology.

Willing to experiment.

Take the time to understand how things work because we care.

US

Page 18: Using Custom Post Types & Taxonomies in WordPress

THEM

Page 19: Using Custom Post Types & Taxonomies in WordPress

THEM

Impatient with technology.

Page 20: Using Custom Post Types & Taxonomies in WordPress

THEM

Impatient with technology.

Want the website to make their job easier.

Page 21: Using Custom Post Types & Taxonomies in WordPress

THEM

Impatient with technology.

Want the website to make their job easier.

Don’t care how things work, tend to follow steps.

Page 22: Using Custom Post Types & Taxonomies in WordPress

HOW DO WE MAKE THINGS EASIER?

Page 23: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

Page 24: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

Page 25: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

Page 26: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

Page 27: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Page 28: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Page 29: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Can be organized using taxonomies(Date, Categories, Tags)

Page 30: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

PAGES

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Can be organized using taxonomies(Date, Categories, Tags)

Page 31: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

PAGES

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Can be organized using taxonomies(Date, Categories, Tags)

Page 32: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

PAGES

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Can be organized using taxonomies(Date, Categories, Tags)

Primarily for static content that won’t change often

Page 33: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

POSTS

PAGES

Primarily for Time Sensitive Content (Blog/News/Press Releases)

Displayed in reverse chronological order on 1 page

Can be organized using taxonomies(Date, Categories, Tags)

Primarily for static content that won’t change often

Content typically exists in only 1 location

Page 34: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPES

Page 35: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPESWhat if your content doesn’t fit this mold?

Page 36: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPESWhat if your content doesn’t fit this mold?

Use default Taxonomies and Custom Queries to fake it.

Page 37: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPESWhat if your content doesn’t fit this mold?

Use default Taxonomies and Custom Queries to fake it.

Custom Post Types

Page 38: Using Custom Post Types & Taxonomies in WordPress

CONTENT TYPESWhat if your content doesn’t fit this mold?

Use default Taxonomies and Custom Queries to fake it.

Custom Post Types

Job ListingsProduct ListingsCase StudiesPress ReleasesMovie ReviewsBook Reviews

Page 39: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPES

Page 40: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress

Page 41: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress

Where do we start?

Page 42: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress

functions.php

Where do we start?

Page 43: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPES

Page 44: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESImplementing Custom Post Types into Your Theme

Page 45: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESImplementing Custom Post Types into Your Theme

Custom Post Query

Page 46: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESImplementing Custom Post Types into Your Theme

Custom Post Query

Custom Single Post Template

Page 47: Using Custom Post Types & Taxonomies in WordPress

CUSTOM POST TYPESImplementing Custom Post Types into Your Theme

Custom Post Query

Custom Single Post Template

Custom Archive Template

Page 48: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIES

Page 49: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

Page 50: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Page 51: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Categories - Hierarchical

Page 52: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

Page 53: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

......................................................................................................................................

Page 54: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

......................................................................................................................................

Genres

Page 55: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

......................................................................................................................................

Genres

Colours

Page 56: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

......................................................................................................................................

Genres

Colours

Sizes

Page 57: Using Custom Post Types & Taxonomies in WordPress

CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.

By default WordPress has 2 different types of Taxonomies.

Tags - Non Hierarchical

Categories - Hierarchical

......................................................................................................................................

Genres

Colours

Sizes

Locations

Page 58: Using Custom Post Types & Taxonomies in WordPress

CODE SAMPLES + MORE INFO

http://daelan.com/wordcampyeg

To download code samples used in this demo and to get more resources on Custom Post Types & Taxonomies visit:

THANKS!