super-cpt icon indicating copy to clipboard operation
super-cpt copied to clipboard

Added meta field description as field_description

Open sixlive opened this issue 11 years ago • 5 comments

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

sixlive avatar Nov 24 '13 19:11 sixlive

Nice, just what I was looking for :)

ebillias avatar Dec 05 '13 08:12 ebillias

Awesome :)

sixlive avatar Dec 05 '13 12:12 sixlive

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!

mboynes avatar Apr 20 '14 05:04 mboynes

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

sixlive avatar Apr 21 '14 16:04 sixlive

@mboynes any updates regarding this?

louy avatar Apr 22 '15 08:04 louy