Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
- // ===============================================================================================
- // -----------------------------------------------------------------------------------------------
- // METABOX OPTIONS
- // -----------------------------------------------------------------------------------------------
- // ===============================================================================================
- $options = array();
- // -----------------------------------------
- // Post Metabox Options -
- // -----------------------------------------
- $options[] = array(
- 'id' => 'neuron_post_meta',
- 'title' => 'work option',
- 'post_type' => 'work',
- 'context' => 'normal',
- 'priority' => 'default',
- 'sections' => array(
- array(
- 'name' => 'work_section_1',
- 'fields' => array(
- array(
- 'id' => 'sub_title',
- 'type' => 'text',
- 'title' => 'sub title',
- 'desc' => 'Type your sub title',
- ),
- array(
- 'id' => 'link_text',
- 'type' => 'text',
- 'title' => 'link_text',
- 'defeult' => 'visite website',
- ),
- array(
- 'id' => 'link',
- 'type' => 'text',
- 'title' => 'link',
- ),
- array(
- 'id' => 'information',
- 'type' => 'group',
- 'title' => 'Work information',
- 'button_title' => 'Add New',
- 'accordion_title' => 'Add New Field',
- 'fields' => array(
- array(
- 'id' => 'text',
- 'type' => 'text',
- 'title' => 'information title',
- ),
- array(
- 'id' => 'value',
- 'type' => 'upload',
- 'title' => 'information value',
- ),
- ),
- ),
- ),
- ),
- ),
- );
- CSFramework_Metabox::instance( $options );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement