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

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

How to use checked() function with multiple check box group? How to properly sanitize that checkbox group?

So checked is fairly simple to understand. It compares the first two values. If they’re equal, it spits out checked=”checked” if they aren’t equal nothing happens. <?php $saved = ‘on’; $compare=”on” // spits out checked=”checked” checked($saved, $compare); $saved = ‘off’; // does nothing checked($saved, $compare); How you save check boxes it up to you. Because … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)