• 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 ?

    • This topic was modified 3 years, 11 months ago by hplwebmaster.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi,

    I’ve never heard of this problem before. Although I rarely used toolset before.
    This week I’m a bit stoked so I’ll not be able to look into this before friday april 9th.
    I also suggest asking Toolset support, they might be more familiar with this.
    Let me know and I’ll take a look later if needed.

    best,
    Jan-Willem

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Hi,

    sorry this slipped through the cracks.
    Do you still need this?
    If so I’ll take a look.

    Jan-Willem

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not working for Toolset Custom post type’ is closed to new replies.