Hello!
Great template!
One problem I don't know how to resolve:
I have a blog with more than 4000 posts, and I've customized your theme for it's new design. http://www.kmkz.ro/
The problem is, all my posts have "attachment" images and don't have Post Thumbnail or Featured image set in the WP admin.
I have to ask you to help me with modifying the home and archive/category pages so it can display the post's first attachment image in it's content if there is no "preview image". Another solution would be to give me some kind of an advice on how to recreate the thumbnails for my older posts.
The current solution I have is like this:
$preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
'display_link' => '_prev_image_link',
'linkurl' => array ('L','_preview_big'),
'wh' => $k_option['custom']['imgSize']['M']
));
if ($preview_image == "") {
$attachments = get_children( array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'numberposts' => 1, // show all -1
'post_status' => 'inherit',
'post_mime_type' => 'image',
'order' => 'ASC',
'orderby' => 'menu_order ASC'
) );
foreach ( $attachments as $attachment_id => $attachment ) {
$src = wp_get_attachment_image_src( $attachment_id, array(150, 150) );
$preview_image = '';
The above solution needs one more thing, to have a default image if the image can be shown or is not found.
I need a solution guys. Fast!
Thanks,














