3.1 update erases customized function page?

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

500 error after update

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

Updating / Transferring site

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.

Batch update of WordPress Plugins

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

How do I disable an update for a specific plugin?

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]

Redirect to another page using contact form 7? [closed]

Do action on publish or update?

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’);

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