11
POWER WITHOUT PLUGINS

Power Without Plugins - WordCamp Miami 2012

Embed Size (px)

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.

Citation preview

Page 1: Power Without Plugins - WordCamp Miami 2012

POWERWITHOUT PLUGINS

Page 2: Power Without Plugins - WordCamp Miami 2012

Myke Bates

http://thealchemediaproject.com@[email protected]

Page 3: Power Without Plugins - WordCamp Miami 2012

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.

Page 4: Power Without Plugins - WordCamp Miami 2012

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.

Page 5: Power Without Plugins - WordCamp Miami 2012

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.

Page 6: Power Without Plugins - WordCamp Miami 2012

Install Some WordPress

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

Page 7: Power Without Plugins - WordCamp Miami 2012

Custom Post Type

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

• register_post_type( $post_type, $args )

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

Page 8: Power Without Plugins - WordCamp Miami 2012

Setup Shirt Post Type

Page 9: Power Without Plugins - WordCamp Miami 2012

post-options-api

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

• Initialize Post Options API• Register sections• Register fields

Page 10: Power Without Plugins - WordCamp Miami 2012

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.

Page 11: Power Without Plugins - WordCamp Miami 2012

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