Your SlideShare is downloading. ×
0
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Extending Custom Post Types
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Extending Custom Post Types

992

Published on

WordCamp Raleigh on May 21, 2011

WordCamp Raleigh on May 21, 2011

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
992
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. EXTENDING CUSTOM POST TYPES Ryan Duff WordCamp Raleigh 2011
    • 2. ABOUT ME Ryan Duffemail: ryan@fusionized.com web: fusionized.com twitter: @ryancduff
    • 3. BRIEF OVERVIEW OF CUSTOM POST TYPES
    • 4. WHAT ARE CUSTOM POST TYPES?• Custom post types behave the same as posts• Better term would be content types• Think: Products, Events, etc...• Built in CPTs: Post, Page, Revision, Attachment, Nav_Menu
    • 5. A WORD ON TAXONOMIES• Taxonomies are a descriptor• Think: meta information• Built in: Cagetory, Tag
    • 6. CREATING A CPT
    • 7. CREATING A TAXONOMY
    • 8. CUSTOM COLUMNS3.1 (Do This)add_filter( manage_edit-venue_columns, venue_columns );add_action( manage_venue_posts_custom_column,venue_show_columns, 10, 2 );3.0 (Not This)add_filter( manage_edit-venue_columns, venue_columns );add_action( manage_posts_custom_column,venue_show_columns, 10, 2 );
    • 9. FILTER THE LIST
    • 10. DO SOMETHING
    • 11. ADDING META BOXES
    • 12. A BETTER WAY Use a class... a handy one from Andrew Norcross https://github.com/jaredatch/Custom-Metaboxes-and-Fields-for-WordPress• Its simpler• Its faster• Its cleaner
    • 13. ADMIN DASHBOARD WIDGETS• Remove the clutter• Simplify things for your clients• Make things easily accessible
    • 14. REMOVE DASHBOARD WIDGETSadd_action( admin_init, remove_dashboard_boxes, 0 );
    • 15. ADD DASHBOARD WIDGETS
    • 16. CHECK THIS OUT: Twenty Ten CRMhttp://www.billerickson.net/twentyten-crm/
    • 17. Ryan Duffemail: ryan@fusionized.com web: fusionized.com twitter: @ryancduff

    ×