I noticed that my older images are no longer getting resolved by Wordpress 5.3.4. - the file doesn't exist on that path and 404 gets returned.
For images that were originally uploaded to
.jpg
Wordpress now looks here
.jpg
The function I'm using to resolve image path (none works with old images):
/
<img class="full-size" src="<?php echo get_the_post_thumbnail_url($row['ID'], "medium"); ?>">
/
<?php the_post_thumbnail( 'medium' ); ?>
I'm using Wordpress Multisite for several years already and never had this problem. Before, the older images of the used to be directly in wp-content/uploads/
directory.
The change could either be part of a Wordpress update or a side effect of the newly installed Elementor plugin.
How to overcome this change?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742288343a4415728.html
评论列表(0条)