List of categories instead of dropdown menu selector in admin options

In that case you can get the list of categories and for each category create a text field something like this: $categories = get_categories(‘hide_empty=0&orderby=name’); foreach ($categories as $cat){ $options[] = array( “name” => $cat->name, “desc” => “Select a color for “.$cat->name.” category”, “id” => $shortname.”_cat_”.$cat->term_id, “type” => “text”, “std” => “”); }

Tabbed theme options query about add_settings_section callback function

You only need one register_setting() call. The rest can be handled internally. I wrote a Settings API tutorial that explains how to do so. Without delving too deeply into the code from the tutorial you linked, just based on the screenshot it appears that the Digital Raindrops code bypasses the standard, WordPress core admin UI … Read more

WordPress Options Framework, add to main menu not appearance menu

You can add a new ‘main’ page to the admin menu using add_menu_page (see Codex). The solution @Kaiser linked to provides sufficient detail on how to create a settings page. The only difference is that rather than adding a page under ‘Appearance’ (with add_options_page) you’ll want to use add_menu_page If this is for distribution I … Read more

Theme Options Page – Select, Radio, Tabs

As per my experience isset will not work for text, textarea it will work for checkbox, radio etc (may be someone can guide you in depth for this) To set option with dropdown selection I would prefer to use switch and case as below <?php switch (get_option(‘your_option_id’)) { case “Default”: ?> <link rel=”stylesheet” href=”https://wordpress.stackexchange.com/questions/54377/<?php bloginfo(“template_url’); … Read more

Admin menus and submenus

Try using add_submenu_page for adding a submenu for the extra entry. Once you add one submenu entry, by default you will have 2 subitems: the parent one (the same as the root item) and the new subitem. This is a default behavior from WordPress (replicating the parent element as the first row when you have … Read more

Cannot update a file for my theme

Those widgets are added because you’ve specified none Try adding a text widget with no content but spaces, you’ll find all those hardcoded default ‘widgets’ dissappear You should never use the built in editor in WordPress though, so use FTP/Shell/VCS instead

Custom Text in Media Uploader in a Theme Options Page

This is a short version of what I do in one of my plugins. I copied this behavior from the plugin Advanced Custom Fields (some versions ago, donnow how it proceeds now). 1) When calling the thickbox, add a custom query var (mtt_type in this case): tb_show(‘{$mtt_title}’, ‘media-upload.php?type=image&amp;mtt_type=image&amp;TB_iframe=true’); 2) Print scripts in media-upload.php to modify … Read more