[Plugin: OptionTree] Meta Options – List-item type not working on custom post type
-
Hello Derek,
I have added the following code on both standard page type and custom page type. Everything works fine on standard ‘page’ type but it doesn’t save any of the list items on the custom page type. Every time I save, the items I have created disappear.
$locationDirections = array( 'id' => 'locationDirections', 'title' => 'Location Directions', 'desc' => '', 'pages' => 'location', 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'label' => 'locationDirections', 'id' => 'locationUpload', 'type' => 'upload', 'class' => '', 'choices' => array() ), array( 'label' => 'Location Transport', 'id' => 'locationTransport', 'type' => 'list-item', 'class' => '', 'choices' => array(), 'settings' => array( array( 'label' => 'Transport Description', 'id' => 'locationTransportsDesc', 'type' => 'text', 'desc' => '', 'std' => '', 'rows' => '', 'post_type' => '', 'taxonomy' => '' ) ) ) ) ); ot_register_meta_box( $locationDirections );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: OptionTree] Meta Options – List-item type not working on custom post type’ is closed to new replies.