} else { $icon = 'note'; } } } } ?> <li id="item-<?php the_ID(); ?> " class="<?php isset($class) ? esc_attr_e($class) : null; ?> " data-cat="<?php esc_attr_e(implode(' ', wp_get_post_terms($post->ID, 'tags-' . get_retro_post_type_page(), array('fields' => 'slugs')))); ?> "> <a href="<?php echo esc_url($href); ?> " <?php isset($newpage) ? esc_attr_e($newpage) : null; ?> > <?php the_post_thumbnail(); ?>
function retro_get_headline($post) { if ($id = isset($post->ID) ? $post->ID : (is_numeric($post) ? $post : null)) { $meta = get_post_meta($id, 'headline', true); if (isset($meta['headline'])) { $headline = $meta['headline']; } } else { if (is_retro_post_type()) { $meta = get_post_meta(get_retro_post_type_page(), 'headline', true); if (isset($meta['headline'])) { $headline = $meta['headline']; } } } return $headline; }