ID, '_kad_image_gallery', true );
if(!empty($image_gallery)) {
$attachments = array_filter( explode( ',', $image_gallery ) );
if ($attachments) {
foreach ($attachments as $attachment) {
$attachment_url = wp_get_attachment_url($attachment , 'full');
$caption = get_post($attachment)->post_excerpt;
$image = aq_resize($attachment_url, $slidewidth, $slideheight, true);
if(empty($image)) {$image = $attachment_url;}
echo ' ';
}
}
} else {
$attach_args = array('order'=> 'ASC','post_type'=> 'attachment','post_parent'=> $post->ID,'post_mime_type' => 'image','post_status'=> null,'orderby'=> 'menu_order','numberposts'=> -1);
$attachments = get_posts($attach_args);
if ($attachments) {
foreach ($attachments as $attachment) {
$attachment_url = wp_get_attachment_url($attachment->ID , 'full');
$image = aq_resize($attachment_url, $slidewidth, $slideheight, true);
if(empty($image)) {$image = $attachment_url;}
echo ' ';
}
}
} ?>
ID, '_kad_image_gallery', true );
if(!empty($image_gallery)) {
$attachments = array_filter( explode( ',', $image_gallery ) );
if ($attachments) {
foreach ($attachments as $attachment) {
$attachment_url = wp_get_attachment_url($attachment , 'full');
$caption = get_post($attachment)->post_excerpt;
$image = aq_resize($attachment_url, null, $slideheight, false, false);
if(empty($image)) {$image = array($attachment_url, $slidewidth, $slideheight);}
echo '
ID, '_kad_image_gallery', true );
$columns = get_post_meta( $post->ID, '_kad_portfolio_img_grid_columns', true );
if(empty($columns)) {$columns = '3';}
echo do_shortcode('[gallery ids="'.$image_gallery.'" columns="'.$columns.'"]');
} else if ($ppost_type == 'video') { ?>
ID, '_kad_post_video', true ); ?>
ID, '_kad_project_val01_title', true );
$project_v1d = get_post_meta( $post->ID, '_kad_project_val01_description', true );
$project_v2t = get_post_meta( $post->ID, '_kad_project_val02_title', true );
$project_v2d = get_post_meta( $post->ID, '_kad_project_val02_description', true );
$project_v3t = get_post_meta( $post->ID, '_kad_project_val03_title', true );
$project_v3d = get_post_meta( $post->ID, '_kad_project_val03_description', true );
$project_v4t = get_post_meta( $post->ID, '_kad_project_val04_title', true );
$project_v4d = get_post_meta( $post->ID, '_kad_project_val04_description', true );
$project_v5t = get_post_meta( $post->ID, '_kad_project_val05_title', true );
$project_v5d = get_post_meta( $post->ID, '_kad_project_val05_description', true );
if(!empty($project_v1t) || !empty($project_v2t)|| !empty($project_v3t) || !empty($project_v4t) || !empty($project_v5t)) { ?>
'.esc_html($project_v1t).' '.esc_html($project_v1d).'';
if ($project_v2t != '') echo '- '.esc_html($project_v2t).' '.esc_html($project_v2d).'
';
if ($project_v3t != '') echo '- '.esc_html($project_v3t).' '.esc_html($project_v3d).'
';
if ($project_v4t != '') echo '- '.esc_html($project_v4t).' '.esc_html($project_v4d).'
';
if ($project_v5t != '') echo '- '.esc_html($project_v5t).' '.esc_html($project_v5d).'
';
?>