get_the_post_thumbnail conflict
-
Hi everyone,
I had to install Jetpack plugin on my website (project, not online).
Unfortunately this plugin causes a big problem with my custom theme.
I useget_the_post_thumbnail
to display last blog posts titles, permalink etc on myfront-page.php
.After days searching in my code, I’ve deactivate Jetpack plugin and everything went back to normal.
So here’s the thing while Jetpack is activated:
– get_the_post_thumbnail : returns nothing
– get_the_post_thumbnail_id : returns ‘0’ everywhere
I’ve also try several attachment() method. Many hours spent on this.
NOTE : _thumbnail_id is in the metadata of posts but isn’t readable anymore when Jetpack is activated.Jetpack settings
So, when Jetpack is not here, everything is fine.
Reactivating Jetpack doesn’t solve the issue.
On / off lazy load for images doesn’t solve the issue.
On / off speed up website (nothing)
On / off protection (nothing)
On / off Media Carrousel (nothing)Thank you for your reading!
Hope someone can help me with this.Version de WooCommerce: 6.3.1
Package WooCommerce REST API: 6.3.1
Package WooCommerce Blocks: 6.9.0
Package du planificateur d’actions: 3.4.0
Package WooCommerce Admin: 3.2.1
Dossier journaux enregistrable:
Version de WordPress : 5.9.2
WordPress multisite : –
Limite de mémoire de WordPress: 512 Mo
Mode de débogage de WordPress :
Cron de WordPress :
Langue: fr_FR`
Info serveur : Apache
Version PHP : 7.4.22
Version de la base de données WooCommerce : 6.3.1
Jetpack : Version 10.7
- The topic ‘get_the_post_thumbnail conflict’ is closed to new replies.