Plugins used: ACF Pro, Bugsnag, Gravity Forms, Loco Translate, Mollie for WooCommerce, Premmerce Manager for WooCommerce, WooCommerce, WooCommerce EU VAT Number, WooCommerce PDF Invoices, xCore Rest API extension, Yoast SEO.īeside that we installed "Regenerate thumbnails" to be able to generate the custom image sizes. It is a webshop and therefore we use WooCommerceĪs said, we made a custom WordPress theme containing WooCommerce templates to override the default WooCommerce themes. For the translation of strings we use the plugin Loco Translate. We use a multisite environment to be able to present the website in multiple languages. It contains a multisite setup with currently one website. The website is build with a WordPress boilerplate from roots.io: Bedrock Thanks to I was made aware of the fact that more information is necessary in order to be able to answer my question. Regenerate missing _wp_attachment_metadata Can anyone explain why this data is missing? Is there a core WordPress functionality that checks the _wp_attachment_metadata for each image in a recurring action? Is something going wrong there? I have found related questions, but none seem to address the core problem. The period over which this happens seems to be random. This allows us to display the correct image sizes.īut the "sizes" data disappears after some time and so the "full" image size is displayed again. We found that for these images, the generated image sizes are missing from the _wp_attachment_metadata postmeta.Īfter regenerating the image sizes, the _wp_attachment_metadata for all images contain the "sizes" array correctly. ![]() Now we've encountered a problem most images are loaded with the 'full' image size, even though the correct image size is present in the uploads folder. This way, we can provide appropriate images for the custom elements and we can ensure that images don't load too large or too heavy. ![]() We like to use custom image sizes for custom WP themes.
0 Comments
Leave a Reply. |