Support » Plugin: Add Featured Image Column » No text or placeholder image when thumbnail file is missing

  • Jairo Ochoa

    (@jairoochoa)


    Hi,

    If the file does not exits in the server the Thumb Column appears blank. It occurs when previously a Thumbnail was created but for some reason the image were deleted.

    This is the source code where you can see that there is nothing between column tag.

    
    <td class="featured_image column-featured_image" data-colname="Image"></td>
    

    Would be great if in this cases appeared a text like “Image missing”.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Robin Cornett

    (@littlerchicken)

    Thanks for the suggestion! What I think may make the most sense would be to do output similar to the tags/comments columns for posts with no tags or comments, and just show a dash instead of the empty table cell. Since the condition the plugin checks for returns the same whether the image was assigned, but deleted, or if there is no featured image assigned, this feels like the appropriate approach. I can add this to the next update.

    Jairo Ochoa

    (@jairoochoa)

    Hi

    I noticed this issue because I’d imported some posts from a XML and the featured images were not uploaded to the website, but the ID remained in the database.

    So I guess this issue would happened also if an image is deleted just from Media and the Post not also updated.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No text or placeholder image when thumbnail file is missing’ is closed to new replies.