Slide 1

Slide 1 text

Metaboxes. Do them right.

Slide 2

Slide 2 text

Let’s tweet about this @aniket_pant #wcpune2013

Slide 3

Slide 3 text

Throw your questions at me anytime. Ask me some thing right now!

Slide 4

Slide 4 text

I’m Aniket Pant. And I have been around for over 2 years now. I love to code and get dirty with front- end. I am also the Curator of Mark My Word, a content and design conference. We owe this to ourselves. We owe this to ourselves. We just can’t let this go.

Slide 5

Slide 5 text

I bet this will remind you of a college lecture. Introduction to Metaboxes 101

Slide 6

Slide 6 text

Introduced in version 2.5 Gives life to the awesome CMS called WordPress

Slide 7

Slide 7 text

Trust me that they are really awesome. What are Metaboxes?

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

Metaboxes are a great addition to WordPress.

Slide 10

Slide 10 text

Makes things simpler to maintain and manage. Implementation is fast and simple. You will definitely fall in love with how you can make your site awesomer with it.

Slide 11

Slide 11 text

One simple reason. They are cool. Why Metaboxes?

Slide 12

Slide 12 text

There is nothing better than adding more features onto an already existing CMS.

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

And then you can use these features to intensify what you are building.

Slide 15

Slide 15 text

How do we implement Metaboxes?

Slide 16

Slide 16 text

Use a library Download a plugin Write the code yourself / /

Slide 17

Slide 17 text

Libraries to implement Metaboxes

Slide 18

Slide 18 text

Custom Metaboxes and Fields for WordPress by Jared Atchison jaredatchison.com WPAlchemy by Far In Space farinspace.com/ wpalchemy- metabox

Slide 19

Slide 19 text

Custom Metaboxes and Fields for WordPress Still in development It’s simply awesome Plug-and-play Lots of built in features like time and date picker

Slide 20

Slide 20 text

WPAlchemy Extensive documentation Used in many websites A little slow on the maintainace Comes along with features you can directly use

Slide 21

Slide 21 text

For those who wish to use plugins

Slide 22

Slide 22 text

There is a plugin called Meta Box and it does everything for you.

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

Meta Box is well maintained. Compatible with WordPress 3.5.1 Gives full control via a full-fledged user interface.

Slide 25

Slide 25 text

And we can code it too

Slide 26

Slide 26 text

‘personal’, ‘title’ => ‘Personal Information’, ‘pages’ => array(‘post’, ‘page’, ‘album’), ‘context’ => ‘normal’, ‘priority’ => ‘high’, ‘fields’ => array( array( ‘name’ => ‘Full name’, ‘desc’ => ‘Format: Firstname Lastname’, ‘id’ => $prefix . ‘fname’, ‘type’ => ‘text’, ‘std’ => ‘Anh Tran’, ‘validate_func’ => ‘check_name’ ) ) ); ?> This is just one bit of the actual code. }

Slide 27

Slide 27 text

Looks complex.

Slide 28

Slide 28 text

It is complex. I will recommend you to use the libraries even if you wish to code everything yourself.

Slide 29

Slide 29 text

These are live projects. Case Studies

Slide 30

Slide 30 text

Case Study #1: Current News Project by Web Mutiny

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

We needed new fields - Place, Date, Subheading, Intro and Timestamp. And we used Custom Metaboxes and Fields for WordPress because it was perfect for us.

Slide 34

Slide 34 text

Case Study #2: Smashing Magazine Job Board

Slide 35

Slide 35 text

http://jobs.smashingmagazine.com

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

Smashing Magazine’s Job Board is a great example of Custom Fields and Taxonomies put into good use.

Slide 38

Slide 38 text

Use metaboxes whenever you need to put in more fields to your website.

Slide 39

Slide 39 text

I have spoken on Theme Development & Customization. It’ll give you a good picture of Theme Development with WP. http://aniketpant.com/speaking/ wordcamp-jabalpur-2011

Slide 40

Slide 40 text

I hope you will use metaboxes in your next project. Thank you for listening. We are the ones, who will achieve, what the world dreams. Because we still believe.

Slide 41

Slide 41 text

Liked my talk? Follow me on twitter: @aniket_pant Mail me: me[at]aniketpant[dot]com Checkout my blog: aniketpant.com