Forums

How to sylte results of meta box contents differently than post? (2 posts)

  1. inetwebguy
    Member
    Posted 8 months ago #

    I'm using a theme that added an array of meta box fields to the "Add New Post" on the Dashboard and would like to style the results of the meta box content differently than the post itself.

    $meta_box = array(
        'id' => 'my-meta-box',
        'title' => 'Location',
        'page' => 'post',
        'context' => 'normal',
        'priority' => 'high',
        'fields' => array(
            array(
                'name' => 'Address ',
                'desc' => 'Your Streen address',
                'id' =>  'ADDRESS',
                'type' => 'textarea',
                'std' => ''
            ),
            array(
                'name' => 'City ',
                'desc' => 'Your CIty',
                'id' =>  'CITY',
                'type' => 'textarea',
                'std' => 'Your City or nearest Metro Area'
            ),
    	array(
                'name' => 'Phone Number ',
                'desc' => 'Your Phone Number',
                'id' =>  'PHONE',
                'type' => 'textarea',
                'std' => 'phone number'
            ),
    
        )
    );

    I would like title "Address, City etc.. to be styled differently than the post, and perhaps even further customization of these items that get added to the post.

  2. vtxyzzy
    Member
    Posted 8 months ago #

    See the Codex on The Admin Style Sheet.

    Also, a Google search on 'wordpress styling the admin panel' will give a lot of leads like this one:

    http://sixrevisions.com/wordpress/how-to-customize-the-wordpress-admin-area/

Reply

You must log in to post.

About this Topic

Tags