1. Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Beyond the Post
Pushing the limits of Custom Post Types
Alley Interactive
WordCamp Miami 2015
2. 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
3. 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/wcmiami201
5
4. 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
5. 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
6. Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Choose Your Meta Weapon Wisely
Is it a simple text field
Yes
Code it yourself
No
Do you code
Yes No
Fieldmanager
https://github.com/alleyinteractive/wordpress-fieldmanager
CMB2
https://github.com/WebDevStudios/CMB2
ACF
( may still require
coding )
7. Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Advanced Example
The 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
8. Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Frontend Menu
10. 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
11. Dan Beil | @add_action_dan | Alley Interactive | @alleydev
Thank You!
Slides - http://bit.ly/wcmiami-2015-cpt
@add_action_dan
Alley Interactive is Hiring!