13
www.WordCampMSP.org Tweet about this session #WordCampMSP!!! Follow Tim Schoffelman @SilentGap TIM SCHOFFELMAN - DEVELOPER -- CURRENT -- PAST - SCHOFFELMAN.COM Extending Functionality Through Custom Fields Introduction Monday, November 15, 2010

"Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

Embed Size (px)

DESCRIPTION

Tim Schoffelman's presentation from Minneapolis WordCamp 2010: "Extending Functionality Through Custom Fields."

Citation preview

Page 1: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

TIM SCHOFFELMAN- DEVELOPER-- CURRENT-- PAST- SCHOFFELMAN.COM

Extending Functionality Through Custom Fields

Introduction

Monday, November 15, 2010

Page 2: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

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 as meta-data”.

Extending Functionality Through Custom Fields

Custom Fields Definition

Monday, November 15, 2010

Page 3: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

Extending Functionality Through Custom Fields

History

Monday, November 15, 2010

Page 4: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- Custom Fields- Persistent once created (w/ exception)*- Video- CDN- Public Posts- Custom Post Type for 3.0.x+

Extending Functionality Through Custom Fields

Case Study: Dice Best Job Ever Campaign

Monday, November 15, 2010

Page 5: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- Public Post- History- Abilities & Freedom

Extending Functionality Through Custom Fields

Case Study: Dice Best Job Ever Campaign

Monday, November 15, 2010

Page 6: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- Coming Soon- Dice Job Type- Dice RSS- First Name- Job Title- Video Thumb- Video Tracking URL- Video URL

Extending Functionality Through Custom Fields

Case Study: Dice Best Job Ever Campaign

Monday, November 15, 2010

Page 7: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- Definition- Resources- Dice Best Job Ever

Extending Functionality Through Custom Fields

Custom Post Type

Monday, November 15, 2010

Page 8: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- Forwarding URL- get_post_meta( $post->ID, ‘forward_url’, true);- Public Posts & their Custom Fields

Extending Functionality Through Custom Fields

Custom Fields

Monday, November 15, 2010

Page 9: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- dice_home.php- dice_int_sidebar.php- dice_video_player.php- dice_widget.php

Extending Functionality Through Custom Fields

Use with Front End Themes

Monday, November 15, 2010

Page 10: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- functions.php- include_file.php

Extending Functionality Through Custom Fields

Use with Flash Ad Units

Monday, November 15, 2010

Page 11: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- functions file author_widget.php- includes file author_widget.php

Extending Functionality Through Custom Fields

Use with Widgets

Monday, November 15, 2010

Page 12: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

- 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

Extending Functionality Through Custom Fields

Tips & Tricks

Monday, November 15, 2010

Page 13: "Extending Functionality Through Custom Fields" - Minneapolis WordCamp 2010

www.

Wor

dCam

pMSP

.org

Tweet about this session #WordCampMSP

!!!

Follow Tim Schoffelman @SilentGap

History

Extending Functionality Through Custom Fields

Q&A

Monday, November 15, 2010