Skip to content
This repository was archived by the owner on Oct 23, 2021. It is now read-only.

Added meta field description as field_description #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added meta field description as field_description #30

wants to merge 1 commit into from

Conversation

sixlive
Copy link

@sixlive sixlive commented Nov 24, 2013

I have never contributed to a GIT project before so bear with me if this pull request isn't done right.

I tried to keep the usage as easy as possible.

Usage:

$tests->add_meta_box( array(
    'id' => 'test-box',
    'context' => 'normal',
    'fields' => array(
        'test-field-one' => array('type'=>'text', 'field_description'=> 'Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Sed posuere consectetur est at lobortis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.'),
        'test-field-two' => array('type'=>'media', 'field_description'=> 'Aenean lacinia bibendum nulla sed consectetur. Sed posuere consectetur est at lobortis.')
    )
) );

Renders:
field_description-screenshot

@ebillias
Copy link

ebillias commented Dec 5, 2013

Nice, just what I was looking for :)

@sixlive
Copy link
Author

sixlive commented Dec 5, 2013

Awesome :)

@mboynes
Copy link
Owner

mboynes commented Apr 20, 2014

Hey @sixlive, sorry for the delay here and thanks for the pull request! I want to give this some thought before adding the description, because I'd like to make sure it's plenty flexible. I think it's definitely worth adding, so thanks!

@sixlive
Copy link
Author

sixlive commented Apr 21, 2014

@mboynes no worries! so far I've found it super flexible, we have used it on ~8 sites at our firm!

@louy
Copy link

louy commented Apr 22, 2015

@mboynes any updates regarding this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants