Is there a way to upgrade a theme without losing custom templates?
Child themes might be your best bet.
Child themes might be your best bet.
Were those updates done to the default Twenty-Ten theme? If so, it was probably steamrolled by the update. Next time, if you are making edits to ‘twentyten’, go ahead and make a copy of it and save it under a different folder name, then switch to it from ‘Appearance->Themes’ in the dashboard, it shouldn’t be … Read more
In phpmyadmin search : SELECT * FROM wp_options WHERE option_name=”template” OR option_name=”stylesheet” OR option_name=”current_theme”; then : UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”template”; UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”stylesheet”; UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”current_theme”; or if you want to go back to default (presuming some default exists) SET option_value=”default” WHERE option_name=”template”; UPDATE wp_options SET option_value=”default” … Read more
The short answer is yes. WordPress does go into maintenance mode when updates are are installed. You have nothing to worry about. This is default behavior. I do know that there are sometimes issues where WordPress gets stuck in maintenance mode after updates, but if you don’t experence such issues, you are good to go … Read more
Well you can export all your existing content from Tools -> Export -> All Content save the xml file and import it into your new wordpress. Test it on your localhost first so you can make sure that all of your content is imported.
Do not rely on changing plugin details to work around this issue. The code that decides a match in official repository is a black box — they don’t disclose how it works and what it considers, except in very general terms. Even if it ignores your plugin today, who knows if it will do the … Read more
You need to also back up the database in addition to the plugins folder. Not only is information stored in the database about which versions of which plugins are installed, an updated plugin itself may make changes to its settings which is stores in the database. Without backing up both the database AND the plugins … Read more
function AS_disable_plugin_updates( $value ) { //create an array of plugins you want to exclude from updates ( string composed by folder/main_file.php) $pluginsNotUpdatable = [ ‘plugin1/plugin.php’, ‘plugin2/plugin2.php’ ]; if ( isset($value) && is_object($value) ) { foreach ($pluginsNotUpdatable as $plugin) { if ( isset( $value->response[$plugin] ) ) { unset( $value->response[$plugin] ); } } } return $value; } … Read more
Redirect to another page using contact form 7? [closed]
Why don’t you wrap it in post save_post and post_publish hooks? You have examples here: http://codex.wordpress.org/Function_Reference/add_action How to do it: Add this to your functions.php file: function my_data_update () { $company = get_field(‘company_name’); $address = get_field(‘address’); $city = get_field(‘city’); $post_code = get_field(‘post_code’); //etc etc… } add_action(‘publish_post’, ‘my_data_update’); add_action(‘save_post’, ‘my_data_update’);