Tagged: setting, settingpage, tab, workflow
- This topic has 2 replies, 2 voices, and was last updated 5 years, 7 months ago by
Steve.
Viewing 2 reply threads
-
AuthorPosts
-
-
July 1, 2016 at 10:59 pm #6872
azizultexMemberHello,
I have created a setting page, workflow, and added some fields to a tab. Unfortunately, the setting fields aren’t showing. Below are the codes, would you let me know what’s wrong?/* setting page */ function piklist_theme_setting_pages($pages) { $pages[] = array( 'page_title' => __('OO Setting', 'oliveorange') , 'menu_title' => __('Theme Setting', 'oliveorange') , 'capability' => 'manage_options', 'menu_slug' => 'oliveorange_setting', 'setting' => 'oliveorange_setting', 'menu_icon' => get_stylesheet_directory_uri() . '/piklist/parts/img/icon.png', 'page_icon' => get_stylesheet_directory_uri(). '/piklist/parts/img/icon.png', 'single_line' => true, 'default_tab' => __('General', 'oliveorange'), 'save_text' => __('Save Settings', 'oliveorange') ); return $pages; } add_filter('piklist_admin_pages', 'piklist_theme_setting_pages');Workflow:
<?php /* Title: General Order: 10 Flow: OO Setting Default: true */File in setting dir:
<?php /* Title: General Setting setting: oliveorange_setting Order: 10 Collapse: false Tab: General tab Flow: OO Setting */ ?> <div class="piklist-demo-highlight"> <?php _e('Text fields are at the core of most forms, and easily created with Piklist. Tooltip help can be added to any field with one line of code.', 'piklist-demo');?> </div> <?php piklist('field', array( 'type' => 'text' ,'field' => 'text' ,'label' => __('Text', 'piklist-demo') ,'help' => __('You can easily add tooltips to your fields with the help parameter.', 'piklist-demo') ,'attributes' => array( 'class' => 'regular-text' ) )); piklist('field', array( 'type' => 'textarea' ,'field' => 'demo_textarea_large' ,'label' => __('Text Area', 'piklist-demo') ,'description' => 'class="large-text code" rows="10" columns="50"' ,'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.' ,'attributes' => array( 'rows' => 10 ,'cols' => 50 ,'class' => 'large-text' ) )); piklist('shared/code-locater', array( 'location' => __FILE__ ,'type' => 'Meta Box' ));Thanks
-
July 3, 2016 at 4:11 am #6877
azizultexMemberSo I was able to figure out the issue. I had to add header for workflow;
<?php /* Flow: OliverOrange Setting Page: oliveorange_setting Header: true Position: title Clear: true */Thanks
-
July 5, 2016 at 11:01 am #6887
SteveKeymasterGlad it worked! Closing ticket.
-
-
AuthorPosts
Viewing 2 reply threads
- The topic ‘Creating Tabbed Setting Page’ is closed to new replies.