Categories
Tutorials WordPress as CMS WordPress Themes

Code snippets from my WordCamp presentation

Here are some code snippets from my WordCamp Whistler presentation. This article will be expanded in the coming week but in the meantime here they are for anyone wanting to play around with them:

Custom Page Templates in 5 lines of code


Custom Fields in one line of code

ID, '$key', true); ?>

Custom Field that parses PHP code

ID, 'centerBox', true); ?>
'.$boxContent); ?>

By Morten Rand-Hendriksen

Morten Rand-Hendriksen is a staff author at LinkedIn Learning and lynda.com specializing in WordPress and web design and development and an instructor at Emily Carr University of Art and Design. He is a popular speaker and educator on all things design, web standards and open source. As the owner and Web Head at Pink & Yellow Media, a boutique style digital media company in Burnaby, BC, Canada, he has created WordPress-based web solutions for multi-national companies, political parties, banks, and small businesses and bloggers alike. He also contributes to the local WordPress community by organizing Meetups and WordCamps.

4 replies on “Code snippets from my WordCamp presentation”

Not officially sent by NetChick (this round) but thought I’d check all the other blogs out. Then I realized that I’m glad I came here to offer a “thank you” for the video you guys (Dabbler) did for us a year and a bit ago. Hurray!

Anyway, I’ll definitely add you to my feed reader now. 🙂

C.

Comments are closed.