Search and Replace For a Text String
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'text to find here', 'text to replace here');
PHP, Symfony, Mysql, jQuery, Ajax, Web development, Payment Gateways, CCavenue, Interview Questions, Web Service Integrations
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'text to find here', 'text to replace here');
function register_fields()
{
register_setting('general', 'my_first_field', 'esc_attr');
add_settings_field('my_first_field', '<label for="my_first_field">'.__('My Field' , 'my_first_field' ).'</label>' , 'print_custom_field', 'general');
}
function print_custom_field()
{
$value = get_option( 'my_first_field', '' );
echo '<input type="text" id="my_first_field" name="my_first_field" value="' . $value . '" />';
}
add_filter('admin_init', 'register_fields');
Function Reference/get settings
<h1><?php echo get_settings('blogname'); ?></h1>
The easiest way to solve this problem is add the following FTP information to your wp-config.php
define('FS_METHOD', 'direct');