array of page titles to choose
-
i would like one of the tabs to show a p[lace chosen in the options page. i am trying to mimic the process by which you can choose what category will appear in what section of the front page.
for that specifically i am using this code:
$categories = get_categories('hide_empty=0&orderby=name'); $wp_cats = array(); foreach ($categories as $category_list ) { $wp_cats[$category_list->cat_ID] = $category_list->cat_name; } array_unshift($wp_cats, "Choose a category");
array( "name" => "Tab #3 category", "desc" => "Posts from this category will be shown on the Tab 3", "id" => $shortname."_tab_cat_3", "type" => "select", "options" => $wp_cats, "std" => "Choose a category"),
however, i have been running around the codex for a couple of days and i’m not really sure how to proceed. wp_dropdown_pages gives a dropdown (obviously) but no submit – i can’t wuite figure out how to use wp_list in this situation…
i dunno
can anyone get me started?
- The topic ‘array of page titles to choose’ is closed to new replies.