'project', 'posts_per_page' => -1, 'category' => 'current' ) ); ?>
have_posts() ) : $loop->the_post(); ?>
ID, $key = 'img_txt_id', true);
$media_file = get_post_meta($post -> ID, $key = '_wp_attached_file', true);
if (!empty($media_file)) {
$strFile = $media_file;
}
$strFullIds = explode( "^ct~", $strFile);
if ( $strFile ) {
foreach ( $strFullIds as $strId ) {
$thumbid = wp_get_attachment_image_src( $strId, 'defaultmaxsize', false );
$thumbidtb = wp_get_attachment_image_src( $strId, "thumbnail128", false );
$allimgs .= $thumbid[0] . '^ct~';
$allimgstb .= $thumbidtb[0] . '^ct~';
}
} else {
$thumbid = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), "defaultmaxsize" );
$allimgs = $thumbid[0] . '^ct~';
$allimgstb = '^ct~';
}
?>
post_date)); ?>
post_date)); ?>