Not adding author image to database in WP 4.0
-
The plugin is not adding an author thumbnail to the database.
Specifically – the user_meta record is not added.An hacked-together workaround is to:
1) Add a 150px X 150px user pic using the media function in the admin panel.
2) Copy down the URL to this.
3) Find the user_id in wp_users (eg: using phpmyadmin), (in the example, assume this id is 22) then TEMPORARILY add a piece of code to your footer.php or header.php file (of your child theme), such as this:<?php $user_id = 22; // The user id your found $meta_key = 'author_profile_picture'; $meta_value = 'https://mydomain.com/wp-content/uploads/2014/10/myuserimage.jpg'; // The image URL you copied down add_user_meta( $user_id, $meta_key, $meta_value, $unique ); ?>
Bring up one page of your site then delete this code.
Your new user image should have been added. Obviously this is a quick & dirty kludge until when and if this plugin becomes updated.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Not adding author image to database in WP 4.0’ is closed to new replies.