Not working for Toolset Custom post type
-
This doesn’t seem to work with custom post types created with the Toolset plugin. I have a custom post type called job, and have specified dfi to only assign the featured image to the job post type in my functions.php using the following:-
function dfi_posttype_jobs ( $dfi_id, $post_id ) { $post = get_post($post_id); if ( 'job' === $post->post_type ) { return $dfi_id; // the image id } return null; // the original featured image id } add_filter( 'dfi_thumbnail_id', 'dfi_posttype_jobs', 10, 2 );
I don’t need the featured image to display in a template, it just needs to be attached to the post so that it gets picked up on social media and displays there.
Could it be that Toolset uses wpv-post-featured-image ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working for Toolset Custom post type’ is closed to new replies.