WordPress built-in Custom Background
You have to include the theme_support in your functions.php Simply add this to your functions.php add_custom_background();
You have to include the theme_support in your functions.php Simply add this to your functions.php add_custom_background();
In the theme folder there is probably a folder called cache where timthumb stores the images it creates. Make sure this is writable, as otherwise timthumb can’t put it’s images anywhere and simply fails to load anything.
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” => “”); }
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
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
This sets $options to the value of test_theme in the database, you can go to phpmyadmin and the wp database and the wp_options (if wp is your prefix) and do a search on option_id row and you’ll find it there. To get this option it should be saved before in the database using add_option() and … Read more
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
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
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
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&mtt_type=image&TB_iframe=true’); 2) Print scripts in media-upload.php to modify … Read more