SlideShare a Scribd company logo
1 of 55
Custom Post Types and Taxonomies

                   Jared Atchison
          WordPress Developer & Consultant

             jaredatchison.com / @jaredatch


3/24/12          Custom Post Types and Taxonomies   1
Just who the hell is this guy?

   ABOUT ME


3/24/12                   Custom Post Types and Taxonomies   2
About Me
•   2008 Texas A&M graduate (whoop)
•   WordPress developer & consultant
•   Featured Genesis developer
•   Listed CodePoet
•   WordCamp speaker and attendee
•   Plugin author
•   Custom Metaboxes co-author (CustomMetaboxes.com)
•   bbPress contributor, forum moderator
3/24/12            Custom Post Types and Taxonomies    3
Let’s begin…

   CUSTOM POST TYPES


3/24/12           Custom Post Types and Taxonomies   4
First, a quick poll.

• DO YOU KNOW?
• DO YOU USE?



3/24/12      Custom Post Types and Taxonomies   5
3/24/12   Custom Post Types and Taxonomies   6
What the @#$*! is a Custom
              Post Type?
           Also referred to as CPTs




3/24/12      Custom Post Types and Taxonomies   7
CPTs - from the Codex
“WordPress can hold and display many different types of
content. Internally, these are all stored in the same place,
in the wp_posts table.

These are differentiated by a column called post_type.

WordPress 3.0 gives you the capability to add your own
custom post types and to use them in different ways.”

http://codex.wordpress.org/Post_Types


3/24/12                Custom Post Types and Taxonomies        8
WP Default Custom Post Types
•   Post
•   Page
•   Attachment
•   Revisions
•   Nav Menus




3/24/12          Custom Post Types and Taxonomies   9
register_post_type()
add_action( 'init', 'create_post_type' );
function create_post_type() {
    register_post_type( 'acme_product',
         array(
             'labels' => array(
                   'name' => __( 'Products' ),
                   'singular_name' => __( 'Product' )
             ),
         'public' => true,
         'has_archive' => true,
         )
    );
}


http://codex.wordpress.org/Function_Reference/register_post_type

3/24/12                  Custom Post Types and Taxonomies          10
BOOM.




3/24/12   Custom Post Types and Taxonomies   11
You should really check out the
                Codex. No Really.
•   Naming best practices
•   Reserved names
•   Admin UI
•   URLs
•   CPT templates
•   Available $args
 http://codex.wordpress.org/Post_Types
 http://codex.wordpress.org/Function_Reference/register_post_type

3/24/12                   Custom Post Types and Taxonomies          12
How and when?

   A PSA ON REGISTERING CPTS


3/24/12            Custom Post Types and Taxonomies   13
Register when appropriate…
• If at all possible – “Core Functionality” plugin

• http://wpcandy.com/teaches/how-to-create-a-functionality-plugin

• http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/

• http://www.billerickson.net/core-functionality-plugin/




3/24/12                 Custom Post Types and Taxonomies                14
How? Check.
          Where? Check.
            WHEN?


3/24/12    Custom Post Types and Taxonomies   15
WITH GREAT POWER
   COMES GREAT RESPONSIBILITY

3/24/12    Custom Post Types and Taxonomies   16
THINK ABOUT HOW IT WILL BE
   USED AND WHAT IT NEEDS
3/24/12    Custom Post Types and Taxonomies   17
Example
• Books
• Will it be setup different than posts?
• Custom metaboxes?
• Separate taxonomies (authors, genres, rating,
  price)
• Separate queries
• Archive page
• No? ?

3/24/12        Custom Post Types and Taxonomies   18
Further reading…
  http://ottopress.com/2010/wordpress-3-0-and-custom-post-types/




3/24/12                Custom Post Types and Taxonomies            19
3/24/12   Custom Post Types and Taxonomies   20
(by popular demand)




3/24/12       Custom Post Types and TaxonomiesCustom Post Types and Taxonomies
                                                                         21
Books




     http://popcritics.com/books/professional-wordpress-plugin-development

3/24/12                   Custom Post Types and Taxonomies                   22
Movies




          http://popcritics.com/movies/avatar
3/24/12     Custom Post Types and Taxonomies    23
Movies (cont.)




          http://popcritics.com/movies
3/24/12                  Custom Post Types and Taxonomies   24
Beating a dead horse.

   SLIDERS, SLIDESHOWS,
   ROTATORS.

3/24/12                    Custom Post Types and Taxonomies   25
Generally there are two different
     methods used for a “slideshow”
          custom post type…




3/24/12       Custom Post Types and TaxonomiesCustom Post Types and Taxonomies
                                                                         26
First method
•   The entire post type is one slideshow
•   Each entry (post) is a slide
•   Featured image is the slide image
•   hierarchial=false (register cpt)
•   orderby=menu_order (wp_query)
•   Fancy AJAX re-ordering, eg:
    http://wordpress.org/extend/plugins/simple-page-ordering/




3/24/12                 Custom Post Types and Taxonomies        27
First method – back end




3/24/12        Custom Post Types and Taxonomies   28
First method – front end




3/24/12         Custom Post Types and Taxonomies   29
Second method
• Each entry (post) is a complete slideshow
• Usually has a shortcode system
  eg [slideshow id=21]
• Often has more bells and whistles, though can
  be more work to customize




3/24/12        Custom Post Types and Taxonomies   30
Second method – back end




                 http://soliloquywp.com/
3/24/12         Custom Post Types and Taxonomies   31
… last one… I promise




                http://soliloquywp.com/
3/24/12        Custom Post Types and Taxonomies   32
Let people know other people like you.

   TESTIMONIALS


3/24/12                 Custom Post Types and Taxonomies   33
3/24/12   Custom Post Types and Taxonomies   34
3/24/12   Custom Post Types and Taxonomies   35
3/24/12   Custom Post Types and Taxonomies   36
Wait for it…

   FAQ


3/24/12           Custom Post Types and Taxonomies   37
http://wordpress.org/extend/plugins/wordpress-faq-manager/




3/24/12                 Custom Post Types and Taxonomies               38
Show clients why you are awesome.

   PORTFOLIO


3/24/12                Custom Post Types and Taxonomies   39
3/24/12   Custom Post Types and Taxonomies   40
3/24/12   Custom Post Types and Taxonomies   41
Getting deeper…
3/24/12     Custom Post Types and Taxonomies   42
Track down leads.

   CRM


3/24/12                Custom Post Types and Taxonomies   43
3/24/12   Custom Post Types and Taxonomies   44
3/24/12   Custom Post Types and Taxonomies   45
3/24/12   Custom Post Types and Taxonomies   46
http://wordpress.org/extend/plugins/front-end-editor/
          https://github.com/billerickson/Genesis-CRM
          https://github.com/jaredatch
3/24/12                  Custom Post Types and Taxonomies         47
Full fledged forums.

   bbPress (2.x)


3/24/12                   Custom Post Types and Taxonomies   48
bbPress
•   One of the most advanced examples of CPTs
•   Go for 2.x
•   Loads of trickery
•   Forums = CPT
•   Topics (threads) = CPT
•   Replies = CPT
•   Topic tags = custom taxonomies

3/24/12         Custom Post Types and Taxonomies   49
THREE CPTS? WAT?




3/24/12      Custom Post Types and Taxonomies   50
Question




3/24/12   Custom Post Types and Taxonomies   51
Answer




3/24/12   Custom Post Types and Taxonomies   52
bbPress in the wild
• www.makeupgeek.com/forums/
• www.getshopped.org/forums/
• www.wpcandy.com/forums/




3/24/12      Custom Post Types and Taxonomies   53
Other CPT examples…
•   Coupons
•   Events (Events Calendar Pro)
•   Products (WooCommerce)
•   URL Redirection (Simple URLs)
•   Bookmarks (formerly like delicious)
•   Tutorials



3/24/12          Custom Post Types and Taxonomies   54
QUESTIONS? FIND ME.

                   Jared Atchison
          WordPress Developer & Consultant

             jaredatchison.com / @jaredatch


3/24/12          Custom Post Types and Taxonomies   55

More Related Content

Similar to Custom Post Types - WordPress

WordPress custom posts types for structured content
WordPress custom posts types for structured contentWordPress custom posts types for structured content
WordPress custom posts types for structured contentFirestorm Creative Studios
 
Custom Post Types and Taxonomies
Custom Post Types and TaxonomiesCustom Post Types and Taxonomies
Custom Post Types and TaxonomiesTammy Hart
 
What is the WordPress Loop?
What is the WordPress Loop?What is the WordPress Loop?
What is the WordPress Loop?webdesigncom
 
Understanding Taxonomy, Drupal Camp Colorado, June 2009
Understanding Taxonomy, Drupal Camp Colorado, June 2009Understanding Taxonomy, Drupal Camp Colorado, June 2009
Understanding Taxonomy, Drupal Camp Colorado, June 2009David Lanier
 
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody Helgeson
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody HelgesonWordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody Helgeson
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody HelgesonCody Helgeson
 
Stepping Into Custom Post Types
Stepping Into Custom Post TypesStepping Into Custom Post Types
Stepping Into Custom Post TypesK.Adam White
 
Custom post types - WordPress
Custom post types - WordPressCustom post types - WordPress
Custom post types - WordPresskeithdevon
 
The very introduction to content management systems
The very introduction to content management systemsThe very introduction to content management systems
The very introduction to content management systemsSean Donnelly BA MSc QFA
 

Similar to Custom Post Types - WordPress (8)

WordPress custom posts types for structured content
WordPress custom posts types for structured contentWordPress custom posts types for structured content
WordPress custom posts types for structured content
 
Custom Post Types and Taxonomies
Custom Post Types and TaxonomiesCustom Post Types and Taxonomies
Custom Post Types and Taxonomies
 
What is the WordPress Loop?
What is the WordPress Loop?What is the WordPress Loop?
What is the WordPress Loop?
 
Understanding Taxonomy, Drupal Camp Colorado, June 2009
Understanding Taxonomy, Drupal Camp Colorado, June 2009Understanding Taxonomy, Drupal Camp Colorado, June 2009
Understanding Taxonomy, Drupal Camp Colorado, June 2009
 
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody Helgeson
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody HelgesonWordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody Helgeson
Wordcamp Phoenix 2012 - Custom Post Types: Now What? By Cody Helgeson
 
Stepping Into Custom Post Types
Stepping Into Custom Post TypesStepping Into Custom Post Types
Stepping Into Custom Post Types
 
Custom post types - WordPress
Custom post types - WordPressCustom post types - WordPress
Custom post types - WordPress
 
The very introduction to content management systems
The very introduction to content management systemsThe very introduction to content management systems
The very introduction to content management systems
 

Recently uploaded

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 

Recently uploaded (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 

Custom Post Types - WordPress

  • 1. Custom Post Types and Taxonomies Jared Atchison WordPress Developer & Consultant jaredatchison.com / @jaredatch 3/24/12 Custom Post Types and Taxonomies 1
  • 2. Just who the hell is this guy? ABOUT ME 3/24/12 Custom Post Types and Taxonomies 2
  • 3. About Me • 2008 Texas A&M graduate (whoop) • WordPress developer & consultant • Featured Genesis developer • Listed CodePoet • WordCamp speaker and attendee • Plugin author • Custom Metaboxes co-author (CustomMetaboxes.com) • bbPress contributor, forum moderator 3/24/12 Custom Post Types and Taxonomies 3
  • 4. Let’s begin… CUSTOM POST TYPES 3/24/12 Custom Post Types and Taxonomies 4
  • 5. First, a quick poll. • DO YOU KNOW? • DO YOU USE? 3/24/12 Custom Post Types and Taxonomies 5
  • 6. 3/24/12 Custom Post Types and Taxonomies 6
  • 7. What the @#$*! is a Custom Post Type? Also referred to as CPTs 3/24/12 Custom Post Types and Taxonomies 7
  • 8. CPTs - from the Codex “WordPress can hold and display many different types of content. Internally, these are all stored in the same place, in the wp_posts table. These are differentiated by a column called post_type. WordPress 3.0 gives you the capability to add your own custom post types and to use them in different ways.” http://codex.wordpress.org/Post_Types 3/24/12 Custom Post Types and Taxonomies 8
  • 9. WP Default Custom Post Types • Post • Page • Attachment • Revisions • Nav Menus 3/24/12 Custom Post Types and Taxonomies 9
  • 10. register_post_type() add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) ); } http://codex.wordpress.org/Function_Reference/register_post_type 3/24/12 Custom Post Types and Taxonomies 10
  • 11. BOOM. 3/24/12 Custom Post Types and Taxonomies 11
  • 12. You should really check out the Codex. No Really. • Naming best practices • Reserved names • Admin UI • URLs • CPT templates • Available $args http://codex.wordpress.org/Post_Types http://codex.wordpress.org/Function_Reference/register_post_type 3/24/12 Custom Post Types and Taxonomies 12
  • 13. How and when? A PSA ON REGISTERING CPTS 3/24/12 Custom Post Types and Taxonomies 13
  • 14. Register when appropriate… • If at all possible – “Core Functionality” plugin • http://wpcandy.com/teaches/how-to-create-a-functionality-plugin • http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/ • http://www.billerickson.net/core-functionality-plugin/ 3/24/12 Custom Post Types and Taxonomies 14
  • 15. How? Check. Where? Check. WHEN? 3/24/12 Custom Post Types and Taxonomies 15
  • 16. WITH GREAT POWER COMES GREAT RESPONSIBILITY 3/24/12 Custom Post Types and Taxonomies 16
  • 17. THINK ABOUT HOW IT WILL BE USED AND WHAT IT NEEDS 3/24/12 Custom Post Types and Taxonomies 17
  • 18. Example • Books • Will it be setup different than posts? • Custom metaboxes? • Separate taxonomies (authors, genres, rating, price) • Separate queries • Archive page • No? ? 3/24/12 Custom Post Types and Taxonomies 18
  • 19. Further reading… http://ottopress.com/2010/wordpress-3-0-and-custom-post-types/ 3/24/12 Custom Post Types and Taxonomies 19
  • 20. 3/24/12 Custom Post Types and Taxonomies 20
  • 21. (by popular demand) 3/24/12 Custom Post Types and TaxonomiesCustom Post Types and Taxonomies 21
  • 22. Books http://popcritics.com/books/professional-wordpress-plugin-development 3/24/12 Custom Post Types and Taxonomies 22
  • 23. Movies http://popcritics.com/movies/avatar 3/24/12 Custom Post Types and Taxonomies 23
  • 24. Movies (cont.) http://popcritics.com/movies 3/24/12 Custom Post Types and Taxonomies 24
  • 25. Beating a dead horse. SLIDERS, SLIDESHOWS, ROTATORS. 3/24/12 Custom Post Types and Taxonomies 25
  • 26. Generally there are two different methods used for a “slideshow” custom post type… 3/24/12 Custom Post Types and TaxonomiesCustom Post Types and Taxonomies 26
  • 27. First method • The entire post type is one slideshow • Each entry (post) is a slide • Featured image is the slide image • hierarchial=false (register cpt) • orderby=menu_order (wp_query) • Fancy AJAX re-ordering, eg: http://wordpress.org/extend/plugins/simple-page-ordering/ 3/24/12 Custom Post Types and Taxonomies 27
  • 28. First method – back end 3/24/12 Custom Post Types and Taxonomies 28
  • 29. First method – front end 3/24/12 Custom Post Types and Taxonomies 29
  • 30. Second method • Each entry (post) is a complete slideshow • Usually has a shortcode system eg [slideshow id=21] • Often has more bells and whistles, though can be more work to customize 3/24/12 Custom Post Types and Taxonomies 30
  • 31. Second method – back end http://soliloquywp.com/ 3/24/12 Custom Post Types and Taxonomies 31
  • 32. … last one… I promise http://soliloquywp.com/ 3/24/12 Custom Post Types and Taxonomies 32
  • 33. Let people know other people like you. TESTIMONIALS 3/24/12 Custom Post Types and Taxonomies 33
  • 34. 3/24/12 Custom Post Types and Taxonomies 34
  • 35. 3/24/12 Custom Post Types and Taxonomies 35
  • 36. 3/24/12 Custom Post Types and Taxonomies 36
  • 37. Wait for it… FAQ 3/24/12 Custom Post Types and Taxonomies 37
  • 39. Show clients why you are awesome. PORTFOLIO 3/24/12 Custom Post Types and Taxonomies 39
  • 40. 3/24/12 Custom Post Types and Taxonomies 40
  • 41. 3/24/12 Custom Post Types and Taxonomies 41
  • 42. Getting deeper… 3/24/12 Custom Post Types and Taxonomies 42
  • 43. Track down leads. CRM 3/24/12 Custom Post Types and Taxonomies 43
  • 44. 3/24/12 Custom Post Types and Taxonomies 44
  • 45. 3/24/12 Custom Post Types and Taxonomies 45
  • 46. 3/24/12 Custom Post Types and Taxonomies 46
  • 47. http://wordpress.org/extend/plugins/front-end-editor/ https://github.com/billerickson/Genesis-CRM https://github.com/jaredatch 3/24/12 Custom Post Types and Taxonomies 47
  • 48. Full fledged forums. bbPress (2.x) 3/24/12 Custom Post Types and Taxonomies 48
  • 49. bbPress • One of the most advanced examples of CPTs • Go for 2.x • Loads of trickery • Forums = CPT • Topics (threads) = CPT • Replies = CPT • Topic tags = custom taxonomies 3/24/12 Custom Post Types and Taxonomies 49
  • 50. THREE CPTS? WAT? 3/24/12 Custom Post Types and Taxonomies 50
  • 51. Question 3/24/12 Custom Post Types and Taxonomies 51
  • 52. Answer 3/24/12 Custom Post Types and Taxonomies 52
  • 53. bbPress in the wild • www.makeupgeek.com/forums/ • www.getshopped.org/forums/ • www.wpcandy.com/forums/ 3/24/12 Custom Post Types and Taxonomies 53
  • 54. Other CPT examples… • Coupons • Events (Events Calendar Pro) • Products (WooCommerce) • URL Redirection (Simple URLs) • Bookmarks (formerly like delicious) • Tutorials 3/24/12 Custom Post Types and Taxonomies 54
  • 55. QUESTIONS? FIND ME. Jared Atchison WordPress Developer & Consultant jaredatchison.com / @jaredatch 3/24/12 Custom Post Types and Taxonomies 55