Inside text editor my preview gallery images are in full size
Inside text editor my preview gallery images are in full size
Inside text editor my preview gallery images are in full size
Fixing image names for a site being restored
i’m experiencing same problem without Jupiter theme. Few plugins and theme i developed uses wp_query for secondary loops like related posts and archive for same category. Whenever I edit single post and click preview changes i get same thumbnail all over web. Figured out which filter does this. Just set it like this and you … Read more
There are no built in functions to size-up an image. You might be able to accomplish what you are looking for by using wp_get_attachment_metadata and an Image processor like GD or Imagegick if your host supports it. Normally at least one of them is supported. So wp_get_attachment_metadata returns an array on success or bool false … Read more
The solution for this problem was rather strange. I hired a developer who helped me solve this: increased memory limit in config.php (not sure if this was causing the problem since it didn’t look like a time-out or anything) in the file regenerate-thumbnail.php the line wp_update_attachment_metadata( $image->ID, $metadata ); was commented. I’m sure I did … Read more
Disable image thumbnails for only one upload folder
Few notes: Just use the_title(); instead of echo get_the_title(); Use the_title_attribute() for title attributes. No need to override the global $wp_query when you use a secondary query. Then use wp_reset_postdata() after your secondary query loop. Use the_permalink() that escapes the permalink, instead of the unescaped echo get_permalink(); There’s the has_post_thumbnail() to check if the post … Read more
hook wp_generate_attachment_metadata does not read all the attachments
Since you are using get_sub_field() i assume you are inside a have_rows() (a repeater), in theory it should work like this: $image = get_sub_field(‘image’); <img src=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“url’]; ?>” alt=”https://wordpress.stackexchange.com/questions/278286/<?php echo $image[“alt’] ?>” /> and this is what you can get: $image[‘url’] //this is the full image echo $image[‘sizes’][‘medium’]; //medium image echo $image[‘sizes’][‘thumbnail’]; //thumbnail image … Read more
When a theme or plugin adds an image size to the list of thumbnails, they will be added to the global $_wp_additional_image_sizes array. This means that every time you upload an image, any additional image sizes will be generated right after the upload is completed. The answer to your second question is no. WordPress does … Read more