Add Media Caption in Blank Template
-
Please let me know how to call image captions for posts. I am working in someone else’s code, set up on “Blank” template.
Here is the code used on index.php, that calls the thumbnails, but not caption, description, etc. (maybe this is the wrong place, too).
<?php query_posts ($query_string . '&cat=5'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h3><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3> <!-- <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?> --> <div id="frontentry"> <?php the_post_thumbnail(); ?></div> <?php the_excerpt(); ?> <!-- <div class="postmetadata"> <?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> </div> --> <?php endwhile; ?> <?php include (TEMPLATEPATH . '/inc/nav.php' ); ?> <?php else : ?> <h3>Not Found</h3> <?php endif; ?> </div> <!-- Loop -->Thanks,
Jack
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Add Media Caption in Blank Template’ is closed to new replies.