Thanks Chris – no, it wasn’t that, since we haven’t upgraded to WP4.2 yet. Turned out to be a problem with Visual Composer which we’ve just re-installed. Gggrrrr…. !!!! Plan to upgrade to 1.71 newsmag soon – but will wait a few days to see how it goes with others first π
Problem solved – I was being impatient! Google takes a while to recognise the newly created ad spot – but it’s working fine now π
Hi – the text probably needs updating anyway – there’s an additional ‘in’ in there π It should read ‘Welcome, Login to your account’
Came across this FREE featured image plugin: https://wordpress.org/support/plugin/quick-featured-images
It saved us a lot of time! Doesn’t (yet) grab featured images from post images in custom filed – but plugin author is working on a premium plugin which will π
Hi Chris – appreciate that π Old code that we knew worked was quickly dropped in simply to get an image into the post so we could run auto post thumbnails – but as we now know it doesn’t harvest post images that are inserted via custom fields – so it was deleted π Now trying to implement it (properly with CSS) since we can’t easily get around the featured image problem.
-
This reply was modified 11 years by
karlos.
Unfortunately Auto Post Thumbnail Pro didn’t work for us. Our old post images were inserted via custom fields – but the plugin didn’t recognise them π
OK – we’ve started migrating the content – and we’ve edited the loop.single templates to pull in the custom field for the image by adding this just before <?php echo $td_mod_single->get_content();?>:
<table width="300px" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><?php if ( get_post_meta($post->ID, 'Image', true) ) { ?>
ID, "Image", true); ?>" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" width="300px" border="0" style="padding: 0px;" align="centre"/>
<?php } else { ?>
<?php } ?></td>
</tr>
</table>
It’s working fine – but we just have a small, cosmetic formatting issue – the table holding the image is the full width of the page – ideally we want it set as just 300px wide and aligned right – so that the content wraps around the left of the table.

Can you help with necessary css code to achieve this? There are in excess of old 10,000 articles in the database.
This should work fine while we generate new post thumbnails with Auto Post Thumbnail Pro.
Great info again Chris S – much appreciated! Would love to see a few links to your sites so we can compare notes π
Hi Chris – thanks for the tip off re the Auto Post Thumbnail Pro – looks as though it will do what we want. Not too worried about the captions. Also tempted to try editing the default post template to pull in the two custom fields!
Strange… code in loop-single.php updated to:
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
<p>Last updated: <?php echo the_modified_date(); ?></p>
Cache emptied – but still not getting ‘last updated’ showing on individual post pages. Are we missing something obvious? π
Thanks Lucian – no problem with the ‘published’ date. We’ve added the following code to the loop-single.php file – but it’s not working for us π Any ideas?
<div class="meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<p>Last updated: <?php the_modified_date(); ?></p>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>