Thumbnail For Excerpts
[resolved] Posts without a pic? (4 posts)

  1. deesnay
    Posted 3 years ago #

    Too bad that posts without a picture still have a placeholder for an empty pic in the excerpts.
    Otherwise, it's great!


  2. markifornia
    Posted 3 years ago #

    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 = 'no';
    	if($default=='no' && $noimg==true){
    	} else {
    				$plus='<a href="'.get_permalink().'">'.$post_thumbnail.'</a>';

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


    [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.]

  3. cscottb
    Posted 3 years ago #

    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.

  4. deesnay
    Posted 3 years ago #

    @cscottb: That works fine indeed! :) Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Thumbnail For Excerpts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.