0
Hello, I wonder how to disable the thumbnail inside the wordpress post, that it only appears in the home after doing the post but within the post it is disabled and does not appear
0
Hello, I wonder how to disable the thumbnail inside the wordpress post, that it only appears in the home after doing the post but within the post it is disabled and does not appear
0
I would try to add the code below in your functions.php:
function remover_post_thumbnail($html, $post_id, $post_thumbnail_id, $size, $attr){
if(is_single($post_id)){
return '';
}
return $html;
}
add_filter( 'post_thumbnail_html', remover_post_thumbnail );
Browser other questions tagged wordpress thumbnail
You are not signed in. Login or sign up in order to post.