this is the current code i tried
function dfi_posttype_book ( $dfi_id, $post_id ) {
$post = get_post($post_id);
if ( ‘category’ === $post->testimonial ) {
return 0; // invalid id
}
return $dfi_id; // the original featured image id
}
add_filter( ‘dfi_thumbnail_id’, ‘dfi_posttype_book’, 10, 2 );
-
This reply was modified 6 years, 9 months ago by glarts.