Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Select categories wordpress options framework plugin

By: a guest on Mar 21st, 2013  |  syntax: PHP  |  size: 0.49 KB  |  views: 84  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.   $categories = get_categories('hide_empty=0&orderby=name');
  2. foreach ($categories as $cat){
  3.     $category_array = array(
  4.     $cat->term_id => $cat->name
  5.       );
  6.  
  7. }
  8.   $options[] = array(
  9.       'name' => __('Weekly programs section', 'options_check'),
  10.       'desc' => __('Choose category for weekly programs section.', 'options_check'),
  11.       'id' => 'weekly_section',
  12.       'std' => 'three',
  13.       'type' => 'select',
  14.       'class' => 'mini',
  15.       'options' => $category_array
  16.     );