<?php } ?> <?php if (has_post_format('image') || !has_post_format()) { // Image ?> <div class="post-format"> <div class="wp-caption"> <?php if (has_post_thumbnail()) { $attache_id = get_post_thumbnail_id(get_the_ID()); $images = sp_get_post_attachment($attache_id); $image_url = aq_resize($images['src'], '640', '372', true); echo '<img src="' . $image_url . '" alt="' . $images['caption'] . '">'; if ($images['caption'] && is_singular()) { echo '<p class="wp-caption-text">' . $images['caption'] . '</p>'; } } ?> </div> </div> <?php } ?> <?php
*/ ?> <?php get_header(); ?> <div id="content"> <div class="container clearfix"> <div class="entry-content"> <?php $gallery = explode(',', get_post_meta($post->ID, 'sp_project_gallery', true)); if ($gallery) { foreach ($gallery as $image) { $thumb_url = wp_get_attachment_image_src($image, 'full'); $img_attached = sp_get_post_attachment($image); ?> <div class="project-detail"> <h3><?php echo $img_attached['title']; ?> </h3> <span class="separator"></span> <p><?php echo $img_attached['description']; ?> </p> <img class="wow fadeIn" src="<?php echo $thumb_url[0]; ?> ">