wordpress images not showing properly

I would check the upload_path upload_url_path under your admin options. I suspect they are still referencing the other website. Go to https://yourdomain.com/wp-admin/options.php and scroll down till you get to the the upload_path and upload_url_path.

Images Wont Display After Importing From Old WordPress

WordPress generate some smaller images (the thumbnails) so, the images are on your server, but thumbnails are not. If the issue is just a thumbnail rebuild, you can do rebuild them with this plugin: https://wordpress.org/plugins/ajax-thumbnail-rebuild/ With lucky you will not need to do anything else. But thumbnails sizes are defined per theme, plugin or even … Read more

Query Image File of a Different Size

I’m not quite sure what data is in your get_field(‘image’) but it sounds like you want all the metadata associated with an image. To do that just pass the $id to wp_get_attachment_metadata(). The result would be: Array ( [width] => 2400 [height] => 1559 [file] => 2011/12/press_image.jpg [sizes] => Array ( [thumbnail] => Array ( … Read more

Troubles with code for upload a image

well i look and i look and finally i found this work that work for me. $upload = wp_upload_bits( $_FILES[‘image’][‘name’], null, file_get_contents( $_FILES[‘image’][‘tmp_name’] ) ); $wp_filetype = wp_check_filetype( basename( $upload[‘file’] ), null ); $wp_upload_dir = wp_upload_dir(); $attachment = array( ‘guid’ => $wp_upload_dir[‘baseurl’] . _wp_relative_upload_path( $upload[‘file’] ), ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => preg_replace(‘/\.[^.]+$/’, ”, basename( $upload[‘file’] … Read more

Large size is not honoured when inserting image

Are you trying to upload a featured image/a thumbnail for a post? If that’s the case, then it will have to be resized like that. If you are not, try clicking on the ‘Edit Image’ option on the ‘Insert Media’ section and try messing around with the settings there. Regards, CSCoder.

How to call thumbnail by aqua resizer in best practice. Specify image dimensions’s notify from GTmetrix

So what’s wrong with adding in the attributes as Mark is saying? <?php $thumb = get_post_thumbnail_id(); $img_url = wp_get_attachment_url( $thumb,’full’ ); $image = aq_resize( $img_url, 150, 200, true, true, true ); ?> <img src=”https://wordpress.stackexchange.com/questions/223038/<?php if($image) { echo esc_url($image); } else { echo catch_that_image();} ?>” width=”150″ height=”200″ alt=”<?php echo get_bloginfo(‘name’); ?>”/>