Media Library empty after server migration

I have found that the easiest way to ‘move’ a blog is to clone it with WP Clone plugin (https://wordpress.org/plugins/wp-clone-by-wp-academy/ ). You install it on the source system and do a backup. Then you install it on the target system and restore the backup. Ta-da! Both systems are exactly the same. Although you can do … Read more

gallery – size is thumbnail by default change it to medium [duplicate]

Add below in you functions.php file, add_filter(‘post_gallery’,’wpse56909_post_gallery’,10,2); function wpse56909_post_gallery($output, $attr) { // We’re trusting author input, so let’s at least make sure it looks like a valid orderby statement if ( isset( $attr[‘orderby’] ) ) { $attr[‘orderby’] = sanitize_sql_orderby( $attr[‘orderby’] ); if ( !$attr[‘orderby’] ) unset( $attr[‘orderby’] ); } extract(shortcode_atts(array( ‘order’ => ‘ASC’, ‘orderby’ => … Read more