Power Without Plugins - WordCamp Miami 2012

Post on 13-Jan-2015

595 views 1 download

Tags:

description

Very few slides - we will mainly be going over code samples, but here are the slides anyways. Never mind the strange fonts - I was using a nonstandard type.

Transcript of Power Without Plugins - WordCamp Miami 2012

POWERWITHOUT PLUGINS

Myke Bates

http://thealchemediaproject.com@mykebatescontact@mykebates.com

To Plug or Not to Plug…

• Personal preferences.• Don’t bork my markup.• Don’t get in my way.• Don’t waste my time.• Are we just writing to the screen?• Flexibility.

To Be Clear

• I am not recommending the elimination of plugin use.

• I love plugins… just not all the time.• If a plugin works for you – use it.

On To The Overview

• A few loaded hand coded examples– Image slider– Very basic E-Commerce setup– Time based interactive media player

• Through these examples you will learn a handful of powerful and reusable concepts to aid you in creating your own custom feature sets – without plugins.

Install Some WordPress

• And let’s jump into some code• Sorry there are not many slides left

Custom Post Type

• Post, Page, Attachment, Revisions, Nav Menus and Custom

• register_post_type( $post_type, $args )

• single-{posttype}.phparchive-{posttype}.php

Setup Shirt Post Type

post-options-api

• https://github.com/kovshenin/post-options-api

• Initialize Post Options API• Register sections• Register fields

You Still There?

• Hopefully these code samples have shown you how quick and easy it can be to roll out custom WordPress implementations based on your needs.

• If not, I have one more sample.

Resources

• post-options-api - http://bit.ly/qIE9dZ• Popcorn.js - http://bit.ly/ejwxC9• Nivo Slider - http://bit.ly/9xQ2xV• Codex Post Types - http://

bit.ly/aXNkEw• Codex Thumbnails - http://

bit.ly/bY7BiH