Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #5252

    Hi there,

    A client of mine owns a website with 1300 posts and we bought Newscast for him and installed as well. However his out layout had post thumbnails on the home page listed from the first image added in the post. Now, in order for him to work OK, he has to:

    1) Create a post

    2) Add images to a post

    3) Add featured image for the slider to work

    4) Add post thumbnail for the images to be visible on home page

    Is there any easy way adding a post to populate header slider + index home page? Also this preloader when image is not available would rather be default image, it’s annoying when it is animated gif or something.

    Also, as this is an old blog, is there a way (script) to drive all the 1300 posts through that process and assign the images in the post as post thumbnails and featured posts?


    OK I figured the featured question as I could feature only a given category. But the question for listing blogs without the images inside stays active.

    Any tips for that?



    I’d replace following code in index.php:

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']),
    'display_link' => array('none'),
    'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']]


    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array($kimg['shortcut'],$kimg['overwrite']),
    'display_link' => array('none'),
    'wh' => $k_option['custom']['imgSize'][$kimg['shortcut']]

    if(empty($preview_image)) { $preview_image = '<img src="http://your.image" alt="" title="" width="700" height="320" />'; }

    and instead of http://your.image fill in your fallback image.


    Hi Dude, thanks for the snippet.

    I haven’t tested your alteration yet, just to be clear – it would help with the default image, but how is it going to populate the thumb on the index page from an image from the post?


    I create a post, add title, in the content text + 2 images. The first image to be visible instead of the post thumb (not to populate two fields).

    I suppose I could write an action on addition or filter on preview, it would probably be easier?


    You can use this plugin: to fetch images from various sources (i.e. post content). Instead of a hardcoded string you can then set the output as $preview_image.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to: Default featured image and post thumbnail + migration?’ is closed to new replies.