• Hi, i love your plugin and using it. But i have a problem.My site is only video site, and i use it when video thumb is not generated. The issue is if i add featured thumb, these images are not shown inside posts. If there is non generated thumb this plugin kicks in nicely by setting default.

    Now the issue is that this image appear inside every my post. I dont know how to get rid off it from posts.

    Any help ? thx

    https://www.ads-software.com/plugins/default-featured-image/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jan-Willem

    (@janwoostendorp)

    Hello oneruffryder,

    Do you only want to exclude the default featured image on posts and show on other posttypes? Or am I misunderstanding something?

    Thread Starter oneruffryder

    (@oneruffryder)

    Hey, What i want is this : If no thumbs are generated show default image like a thumb, but dont insert that thumb inside post.

    Plugin Author Jan-Willem

    (@janwoostendorp)

    Okay, If I understand correctly you want to display a default thumb on all not single post pages. Like on the category page or maybe the search results, just never on the individual posts pages.
    Below the code to do just that:

    function exclude_single_posts ( $dfi_id, $post_id ) {
       // don't trigger on individual posts
      if( is_single() ) {
        return 0; // invalid id means no image
      }
      return $dfi_id; // the original featured image id
    }
    add_filter( 'dfi_thumbnail_id', 'exclude_single_posts', 10, 2 );

    Let me know how it goes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured image inside post issue’ is closed to new replies.