Viewing 3 replies - 1 through 3 (of 3 total)
  • There seems to be no other plugin that works as great as this one. I modified the code so that the default pic won’t show up at all (if there is no thumbnail in the post):

    I don’t have the exact line numbers, but if you control find, you should be able to figure it out.

    I’ve already implemented this and tested:

    /*$default=(get_settings('tfe_default_image')==''?'yes':get_settings('tfe_default_image'));*/
    	$default = 'no';
    
    			if($withlink=="yes")
    	if($default=='no' && $noimg==true){
    				$plus='';
    	} else {
    				$plus='<a href="'.get_permalink().'">'.$post_thumbnail.'</a>';
    	}
    			else
    				$plus=$post_thumbnail;
    	}

    If there are any errors generated by this that I’m not aware of or have not encountered, please let me know.

    Thanks!

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    I just select the “no” dropdown option next to “Default Image:” in the Thumbnail for Excerpts settings and had never had an image show up for posts without images.

    Thread Starter deesnay

    (@deesnay)

    @cscottb: That works fine indeed! 🙂 Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Thumbnail For Excerpts] Posts without a pic?’ is closed to new replies.