"Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010
1. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Introduction
TIM SCHOFFELMAN
- DEVELOPER
-- CURRENT
-- PAST
www.WordCampMSP.org
- SCHOFFELMAN.COM
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
2. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Custom Fields Definition
The Codex describes Custom
Fields as giving WordPress
"the ability to allow post
authors to assign custom
fields to a post. This arbitrary
extra information is known
www.WordCampMSP.org
as meta-data”.
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
3. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
History
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
4. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Case Study: Dice Best Job Ever Campaign
- Custom Fields
- Persistent once created (w/ exception)*
- Video
- CDN
- Public Posts
- Custom Post Type for 3.0.x+
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
5. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Case Study: Dice Best Job Ever Campaign
- Public Post
- History
- Abilities & Freedom
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
6. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Case Study: Dice Best Job Ever Campaign
- Coming Soon
- Dice Job Type
- Dice RSS
- First Name
- Job Title
- Video Thumb
- Video Tracking URL
www.WordCampMSP.org
- Video URL
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
7. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Custom Post Type
- Definition
- Resources
- Dice Best Job Ever
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
8. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Custom Fields
- Forwarding URL
- get_post_meta( $post->ID, ‘forward_url’, true);
- Public Posts & their Custom Fields
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
9. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Use with Front End Themes
- dice_home.php
- dice_int_sidebar.php
- dice_video_player.php
- dice_widget.php
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
10. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Use with Flash Ad Units
- functions.php
- include_file.php
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
11. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Use with Widgets
- functions file author_widget.php
- includes file author_widget.php
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
12. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Tips & Tricks
- If I need to customize the feed for a separate app to consume (like a flash file), I’ll create a separate feed file to
customize, leaving the original alone
- I typically will create a separate folder for files that control core theme functionality and name it functions
- Also, I’ll usually do the same for items I need to display on the or within the theme template or feed, which will be called
includes
- All code from the Guest Author example can be downloaded at GitHub - https://github.com/schoffelman/WordCamp-
MSP
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010
13. Tweet about this session #WordCampMSP!!!
Extending Functionality Through Custom Fields
Q&A
History
www.WordCampMSP.org
Follow Tim Schoffelman @SilentGap
Monday, November 15, 2010