// Program Number $program_number = get_post_meta($post->ID, 'dns_program_number', true); printf('<p class="program-number">#%s</p>', $program_number); ?> </aside> <div class="description"> <?php printf('<p>%s</p>', $post->post_content); ?> <p class="categories"> <strong>Categories: </strong> <?php the_category(', '); ?> </p> <p class="locations"> <strong>Locations: </strong> <?php echo dns_taxonomy_term_string('program-locations'); ?> </p> <?php $series = wp_get_post_terms($post->ID, 'series'); if (!is_single() && !empty($series)) { printf('<p><strong>Series:</strong> %s</p>', $series[0]->name); } dns_program_image_thumbnail(true); ?> </div> </div> </article>
/** * Display the post thumbnail if there is one and link to larger modal version. Loop only. */ function dns_program_image_column() { printf('<td class="program-image">'); dns_program_image_thumbnail(); printf('</td>'); }