Using Custom Post Types & Taxonomies in WordPress
-
Upload
daelanw -
Category
Technology
-
view
755 -
download
1
Transcript of 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
AND MAKE THINGS EASY FOR YOUR CLIENTS
WORDPRESS AS A CMS
WORDPRESS AS A CMS
Who are the Primary Users of the Website?
WORDPRESS AS A CMS
Who are the Primary Users of the Website?
Site Visitors
WORDPRESS AS A CMS
Who are the Primary Users of the Website?
Site Visitors (Your Clients Clients)
WORDPRESS AS A CMS
Who are the Primary Users of the Website?
Site Visitors
Site Administrators
(Your Clients Clients)
WORDPRESS AS A CMS
Who are the Primary Users of the Website?
Site Visitors
Site Administrators
(Your Clients Clients)
(Your Client)
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)
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)
US
VSUS
VSUS THEM
US
Interested in technology.
US
Interested in technology.
Willing to experiment.
US
Interested in technology.
Willing to experiment.
Take the time to understand how things work because we care.
US
THEM
THEM
Impatient with technology.
THEM
Impatient with technology.
Want the website to make their job easier.
THEM
Impatient with technology.
Want the website to make their job easier.
Don’t care how things work, tend to follow steps.
HOW DO WE MAKE THINGS EASIER?
CONTENT TYPES
CONTENT TYPES
CONTENT TYPES
POSTS
CONTENT TYPES
POSTS
CONTENT TYPES
POSTS
Primarily for Time Sensitive Content (Blog/News/Press Releases)
CONTENT TYPES
POSTS
Primarily for Time Sensitive Content (Blog/News/Press Releases)
Displayed in reverse chronological order on 1 page
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)
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)
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)
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 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
CONTENT TYPES
CONTENT TYPESWhat if your content doesn’t fit this mold?
CONTENT TYPESWhat if your content doesn’t fit this mold?
Use default Taxonomies and Custom Queries to fake it.
CONTENT TYPESWhat if your content doesn’t fit this mold?
Use default Taxonomies and Custom Queries to fake it.
Custom Post Types
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
CUSTOM POST TYPES
CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress
CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress
Where do we start?
CUSTOM POST TYPESForcing WordPress to work with your content rather than forcing your content to work with WordPress
functions.php
Where do we start?
CUSTOM POST TYPES
CUSTOM POST TYPESImplementing Custom Post Types into Your Theme
CUSTOM POST TYPESImplementing Custom Post Types into Your Theme
Custom Post Query
CUSTOM POST TYPESImplementing Custom Post Types into Your Theme
Custom Post Query
Custom Single Post Template
CUSTOM POST TYPESImplementing Custom Post Types into Your Theme
Custom Post Query
Custom Single Post Template
Custom Archive Template
CUSTOM TAXONOMIES
CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.
CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.
By default WordPress has 2 different types of Taxonomies.
CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.
By default WordPress has 2 different types of Taxonomies.
Categories - Hierarchical
CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.
By default WordPress has 2 different types of Taxonomies.
Tags - Non Hierarchical
Categories - Hierarchical
CUSTOM TAXONOMIESTaxonomies are a means to group and organize content.
By default WordPress has 2 different types of Taxonomies.
Tags - Non Hierarchical
Categories - Hierarchical
......................................................................................................................................
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
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
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
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
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!