how to remove / hide ‘featured image’ option from side menu

Somewhere in your theme or parent theme, there’s this line: add_theme_support( ‘post-thumbnails’ ); If it’s in your child theme, you can simply remove it. If it’s in your parent theme, you can add this to your child theme functions.php file. // in your Child Theme’s functions.php // Use the after_setup_theme hook with a priority of … Read more

After reinstalling wordpress images do not appear in posts?

I am assuming you used the WordPress Importer? Did you select the “Import images” option? I think this would solve your issue. To clarify on the issue: Your images were not imported in the wp_posts database. They are stored in there as an “attachment” post type. The WP Gallery Shortcode references the id of each … Read more

Resize External Image

I wrote this function for you, which will first make a copy of the external image, crop it , and return the ID of it: function external_image_loader ($image_url, $post_id, $title) { $img_name = basename ($image_url); global $wpdb; $query = “SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value=”$img_name””; $id = $wpdb->get_var($query); if (is_numeric($id)) { return $id; } else … Read more