• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Custom Post Types in the wild (WordCamp Sofia 2012)
 

Custom Post Types in the wild (WordCamp Sofia 2012)

on

  • 2,901 views

My session on Custom Post Types at W

My session on Custom Post Types at W

Statistics

Views

Total Views
2,901
Views on SlideShare
2,432
Embed Views
469

Actions

Likes
4
Downloads
8
Comments
0

9 Embeds 469

http://devwp.eu 147
http://planetwordpress.planetozh.com 143
http://peshev.net 138
http://feeds.feedburner.com 15
https://twitter.com 10
http://www.linkedin.com 10
http://feeds2.feedburner.com 3
https://www.linkedin.com 2
https://si0.twimg.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Custom Post Types in the wild (WordCamp Sofia 2012) Custom Post Types in the wild (WordCamp Sofia 2012) Presentation Transcript

    • Custom Post Types In the wildMario Peshev me.peshev.net@no_fear_inc
    • Agenda• WordPress• Posts and Pages• Custom Post Types• In the wild• Types• Views
    • About me• WordPress Engineer at  • DevriX CTO• Open Source trainer  and consultant
    • 70 000 000+ websites
    • 21% of all USA­registered domains now
    • Posts and Pages
    • Posts – chronological  and archives
    • Pages – subpages  and templates
    • But in the end...
    • phpMyAdmin 
    • Post Types• Post• Page• Attachment• Revision• Nav Menu
    • But I need a new structure :
    • Examples:
    • Magazine Entries
    • Products
    • Real Estates
    • Slides
    • Courses
    • Forms
    • Air Conditioners 
    • Whats the difference• Unique styling for a post type• Separate categorization• List only post type entries• Common API for all post types• The magic Custom Fields
    • CuperFields!
    • Add extra values to a post
    • Enable them first!
    • All post types include...• Title• Content area• Date• Featured Image• Revisions
    • Custom Fields • Specific information for every post • Rating • Phone number• Everything beyond title, content, featured  image, date or taxonomies
    • Wait, Taxonomies?
    • Tags
    • Categories
    • And... Custom Taxonomies!
    • Taxonomies• Great for classification• Drawback: • Support only title • Cant be extended (naturally)
    • Post Types ­ simple
    • Post Types ­ full
    • Register Taxonomy
    • The Loop• The core iteration WordPress unit
    • List all product titlesNote: always use WP_Query instead. 
    • List all products in a taxonomy term
    • The Swiss knife of Post Types
    • Field groups
    • Types Range• Types could define: • Post type structure • Taxonomies and relations • Custom field groups per post type • Extra custom fields• Loop is to be done manually
    • CPT toolkits• Types• Pods• Advanced Custom Fields• Custom Post Type UI• More Fields
    • Pro users: go to Views
    • Views sample site
    • Views
    • View Templates
    • Views Disclaimer• Warning: Views is not free, its $49 for  unlimited number of websites• How come? • Complete LOOP control with UI • Create templates for post types and archives • Submit CPTs from the front end • Widgetized loops
    • Questions?