Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $categories = get_categories('hide_empty=0&orderby=name');
- foreach ($categories as $cat){
- $category_array = array(
- $cat->term_id => $cat->name
- );
- }
- $options[] = array(
- 'name' => __('Weekly programs section', 'options_check'),
- 'desc' => __('Choose category for weekly programs section.', 'options_check'),
- 'id' => 'weekly_section',
- 'std' => 'three',
- 'type' => 'select',
- 'class' => 'mini',
- 'options' => $category_array
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement