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

how to get the post id in the option tag

$post->id needs to be $post->ID You can also use get_the_ID() Since your calling setup_postdata() you need to call wp_reset_postdata() after your foreach loop. You also need to echo the value of $options somewhere. foreach( $myposts as $post ) : setup_postdata($post); $options .= ‘<option>’; $options .= ‘<option value=”‘.$post->id.'”>’; $options .= get_the_title(); $options .= ‘</option>’; echo $options; … Read more

[Multisite]How can I update custom blog option?

As per the Codex on update_blog_option: Switches to the blog id specified, runs update_option() and then restores to the current blog. If $refresh is true then it will refresh the blog details. Not tested, but I think your problem is trying to update elements of the array instead of the whole thing: $the_options = get_blog_option($blog_id, … Read more

image URL changed in wordpress

Using WordPress plugin – Search And Replace This is simple WordPress plugin, Does database query to replace any content. This plugin can be used to replace a string ( say – localhost:8888 ) with a new one ( domain.com ) . Direct updating MySQL Database – Or, If you’ve access to MySQL Server you can … Read more

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