<h1><?php the_title(); ?> </h1> <?php if (!empty($post->post_excerpt)) { the_excerpt(); } // this is the "caption" the_content(); if (cfct_get_adjacent_image_link(false) != '') { next_image_link(); } if (cfct_get_adjacent_image_link(true) != '') { previous_image_link(); } ?> <?php } } else { ?> <p>Sorry, no attachments matched your criteria.</p> <?php } ?>
</a> </div> <?php if (!empty($post->post_excerpt)) { echo '<div class="attachment-excerpt">', the_excerpt(), '</div>'; // this is the "caption" } the_content(); ?> </div> <div class="attachment-next"> <?php if (cfct_get_adjacent_image_link(false) != '') { next_image_link('thumb-img'); } ?> </div> </div><!--#attachment--> <?php } } else { ?> <p><?php _e('Sorry, no attachments matched your criteria.', 'favepersonal'); ?> </p>