Block 21 – Posts without thumbnail

Posted in: Newspaper
Post count: 100

Hi, I noticed a problem with at Newspaper 6.6.4 with the Block21 in my site, when the post contains no thumbnail.
As you will see from the attached image, it displays the image that we use as non-thumb image, and then an error.

This happens at block21, for other blocks I haven’t noticed something.
I attach the same content in block16 to see that it doesn’t show up on other blocks

  • This topic was modified 10 years by neakriti.
Post count: 100

I noticed that the block21 uses the module_16.
This calls the code
<?php echo $this->get_image('thumbnail');?>

while for block 16 that uses module_mx7 and module_6 use
<?php echo $this->get_image('td_218x150');?>
and
<?php echo $this->get_image('td_100x70');?>
respectively….

It seems that the “get_image(‘thumbnail’)” for posts without featured image causes the problem.

  • This reply was modified 10 years by neakriti.
Post count: 23312

Hello neakriti,

This error comes up in the search/block 21/module 16 when a post has no featured image set to it. This is the case because the search uses the default WP thumbnail. We are working on a fix for this and until we can implement it, you can use this workaround:

You need to edit td_config.php and add this code:

td_api_thumb::add('thumbnail',
array(
'name' => 'thumbnail',
'width' => 150,
'height' => 150,
'crop' => array('center', 'top'),
'post_format_icon_size' => 'normal',
'used_on' => array(
'Big grid 1, 3, 7 - small image'
)
)
);

It should look like so: http://screencast.com/t/RTkWKH6me
Basically, you are just adding another thumbnail to the list in between the existing ones. Then the error will not display anymore.

Hope this helps and let us know how it goes!

Thank you for the message!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.