>
ID); $cf_thumb = (isset($custom["klasik_thumb"][0]))? $custom["klasik_thumb"][0] : ""; $cf_lightbox = (isset($custom["klasik_lightbox"][0]))? $custom["klasik_lightbox"][0] : ""; $cf_externallink = (isset($custom["klasik_link"][0]))? $custom["klasik_link"][0] : ""; //get post-thumbnail attachment $attachments = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'orderby' => 'menu_order', 'post_mime_type' => 'image') ); $cf_thumb2 =''; foreach ( $attachments as $att_id => $attachment ) { $getimage = wp_get_attachment_image_src($att_id, 'entry-image', true); $theimage = $getimage[0]; $cf_thumb2 =''; } //thumb image if($cf_thumb!=""){ $cf_thumb = "". get_the_title() .""; }elseif(has_post_thumbnail($post->ID)){ $cf_thumb = get_the_post_thumbnail($post->ID, 'entry-image'); }else{ $cf_thumb = $cf_thumb2; } $thumbhtml = ''; if($cf_thumb!=""){ $thumbhtml .= '
'; $thumbhtml .= '
'; $thumbhtml .= ''.$cf_thumb.''; $thumbhtml .= '
'; $thumbhtml .= '
'; $thumbhtml .= '
'; } ?>

/
/
/