Strange bug on post/page save

In my experience this happens when you initiate an operation (Save/Update) and then try to leave the page to do something else before the requested operation has completed. Next time you save/update a post wait until the edit page returns to normal and displays your content. Then navigate away from the edit page. Chances are … Read more

Can’t seem to disable Java Automatic Update

Actually this problem is due to the control panel requiring administrator privileges to allow the Java control panel to save your settings (it hasn’t been fixed for ages, thanks to Sun Microsystems). First, you need to find the Java Control Panel executable, in one of the following locations: C:\Program Files\Java\jre[version]\bin\javacpl.exe or C:\Program Files (x86)\Java\jre[version]\bin\javacpl.exe The … Read more

Auto generate custom post title

Something like this should do the trick using JS to set the title on initial load of a new post. You will not need to differentiate between publish/draft etc. and you can let WordPress sanitize. function set_post_title( $post ) { global $current_user; if( get_post_type() != ‘interviews’ || $post->post_status != ‘auto-draft’ ) return; $uniqueid_length = 8; … Read more

WordPress 4.4.2 Update not working

I had to change the ownership of the directory Current Ownership was username:www-data Changed it to www=data:www-data after this it’s not asking for my ftp password anymore and update is working with just one click Reference https://wordpress.org/support/topic/plugin-install-asks-for-ftp-details

How (or where) do I get wordpress plugin update download link?

The latest plugin update information is available by print_r(get_site_transient(‘update_plugins’)); or if you want to filter out wordpress.org plugins and make it more readable… $pluginupdates = get_site_transient(‘update_plugins’); foreach ($pluginupdates->response as $pluginupdate => $values) { if (!stristr($values->package,’wordpress.org’)) { echo “Plugin Name: “.$values->slug.” — “; echo “Update Package: “.$values->package.”<br>”.PHP_EOL; } } Of course, this will just return blank … Read more

Auto update post title and slug when post status is changed

I think I found the solution: add_filter(‘wp_insert_post_data’,’reset_post_date’,99,2); function reset_post_date($data,$postarr) { //update post time on status change $data[‘post_date’] = $data[‘post_modified’]; $data[‘post_date_gmt’] = $data[‘post_modified_gmt’]; //also update title and add the current date to title $data[‘post_title’] = ‘Your Default Title – ‘. current_time ( ‘m-d-Y’ ); //also update the slug of the post for the URL $data[‘post_name’] = … Read more

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