WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail For Excerpts
default image always showing up (1 post)

  1. toltmanns
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic