Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Using Custom Post Types and Taxonomies in WordP...

daelan
November 22, 2011

Using Custom Post Types and Taxonomies in WordPress

Slides from a talk I have at WordCamp Edmonton 2011. See http://daelan.com/wordcampyeg for related code samples

daelan

November 22, 2011
Tweet

Other Decks in Programming

Transcript

  1. 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
  2. WORDPRESS AS A CMS Who are the Primary Users of

    the Website? Site Visitors (Your Clients Clients)
  3. WORDPRESS AS A CMS Who are the Primary Users of

    the Website? Site Visitors Site Administrators (Your Clients Clients)
  4. WORDPRESS AS A CMS Who are the Primary Users of

    the Website? Site Visitors Site Administrators (Your Clients Clients) (Your Client)
  5. 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)
  6. 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)
  7. US

  8. US

  9. Interested in technology. Willing to experiment. Take the time to

    understand how things work because we care. US
  10. THEM Impatient with technology. Want the website to make their

    job easier. Don’t care how things work, tend to follow steps.
  11. 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)
  12. 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)
  13. 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)
  14. 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
  15. 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
  16. CONTENT TYPES What if your content doesn’t fit this mold?

    Use default Taxonomies and Custom Queries to fake it.
  17. CONTENT TYPES What if your content doesn’t fit this mold?

    Use default Taxonomies and Custom Queries to fake it. Custom Post Types
  18. CONTENT TYPES What if your content doesn’t fit this mold?

    Use default Taxonomies and Custom Queries to fake it. Custom Post Types Job Listings Product Listings Case Studies Press Releases Movie Reviews Book Reviews
  19. CUSTOM POST TYPES Forcing WordPress to work with your content

    rather than forcing your content to work with WordPress
  20. CUSTOM POST TYPES Forcing WordPress to work with your content

    rather than forcing your content to work with WordPress Where do we start?
  21. CUSTOM POST TYPES Forcing WordPress to work with your content

    rather than forcing your content to work with WordPress functions.php Where do we start?
  22. CUSTOM POST TYPES Implementing Custom Post Types into Your Theme

    Custom Post Query Custom Single Post Template
  23. CUSTOM POST TYPES Implementing Custom Post Types into Your Theme

    Custom Post Query Custom Single Post Template Custom Archive Template
  24. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies.
  25. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies. Categories - Hierarchical
  26. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies. Tags - Non Hierarchical Categories - Hierarchical
  27. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies. Tags - Non Hierarchical Categories - Hierarchical ......................................................................................................................................
  28. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies. Tags - Non Hierarchical Categories - Hierarchical ...................................................................................................................................... Genres
  29. CUSTOM TAXONOMIES Taxonomies are a means to group and organize

    content. By default WordPress has 2 different types of Taxonomies. Tags - Non Hierarchical Categories - Hierarchical ...................................................................................................................................... Genres Colours
  30. CUSTOM TAXONOMIES Taxonomies 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
  31. CUSTOM TAXONOMIES Taxonomies 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
  32. 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!