Upload
dan-beil
View
445
Download
1
Embed Size (px)
Citation preview
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Beyond the PostPushing the limits of Custom Post Types
Alley Interactive
WordCamp Miami 2015
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Hi, Im Dan Beil- Software Developer at Alley Interactive
- (WordPress VIP Partner, i.e. We make really big sites)
- Working with WordPress for ~ 5-6 years- B.S. in Applied Sociology- Dogs
http://bit.ly/wcmiami-2015-cpt
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Why This Talk?- Any CMS is about organizing
information- CMS should Allow Devs to
make decisions about organization of info
Plugins / Code Examples:
- Meteor Slides- https://wordpress.
org/plugins/meteor-slides/developers/
- Custom Stuff- https://github.
com/dannyb195/wcmiami2015
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Why Use CPTs / Meta Data- They are already available
to us- Again, Allow Devs to make
decisions on Information Architecture
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Meteor Slides ( Josh Leuze )- https://wordpress.
org/plugins/meteor-slides/- The Basics
- register_post_type();- register_taxonomy();- add_meta_box(); - for slide link
- Shortcode / template tag for display
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Choose Your Meta Weapon WiselyIs it a simple text field
Yes
Code it yourself
No
Do you codeYes No
Fieldmanagerhttps://github.com/alleyinteractive/wordpress-fieldmanager
CMB2https://github.com/WebDevStudios/CMB2
ACF( may still require coding )
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Advanced ExampleThe client needs a mega menu where they have the option of:
- manually selecting posts- curate by multiple tags /
categories- these selections should be
reflect on landing page
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
single.php CPTMeta$post_meta = get_post_meta( get_the_ID(), 'section_options', true );
echo '<pre>';print_r( $post_meta );echo '</pre>';
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Let look at some Meta Boxes, and code if we have time
https://github.com/dannyb195/wcmiami2015
Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Thank You!Slides - http://bit.ly/wcmiami-2015-cpt
@add_action_dan
Alley Interactive is Hiring!