WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Thumbnail For Excerpts] default image always showing up

[Plugin: Thumbnail For Excerpts] default image always showing up

  • I found that the following line of code had to be changed in order to stop displaying the default image:

    $default=(get_settings(‘tfe_default_image’)==”?’yes’:get_settings(‘tfe_default_image’));

    to

    $default=(get_settings(‘tfe_default_image’)==”?’no’:get_settings(‘tfe_default_image’));

    While I don’t know the script line for line – it seems to me like the ternary is checking to see if the tfe_default_image valued is populated with ANYTHING – not easy to understand from a novice POV. I attempted to change the image source value to “no” thinking it would turn it off, but it didn’t.

    with that change, the desired if loop is hit:

    if($default==’no’ && $noimg==true){
    //not to show default? ok! nothing to show!
    }

    http://wordpress.org/extend/plugins/thumbnail-for-excerpts/

  • The topic ‘[Plugin: Thumbnail For Excerpts] default image always showing up’ is closed to new replies.