$whisky_post = true; break; case 'Rye': $whisky_post = true; break; case 'Scotch': $whisky_post = true; break; } //echo '<img src="' . esc_url( 'http://example.com/images/' . intval( $category->term_id ) . '.jpg' ) . '" alt="' . esc_attr( $category->name ) . '" />'; //echo "yep: " . $category->name . " "; } if ($whisky_post) { if (!empty(trim(whisky_excerpt()))) { echo whisky_excerpt(); } else { the_excerpt(); } } else { the_excerpt(); } ?> </div><!-- .entry-summary --> <div class="clear"></div> </article><!-- .post --> <?php if (esplanade_is_teaser()) { ?> <?php esplanade_teaser_clearfix(); }
/** * Add a permalink to teasers with no title * * @since Esplanade 1.0.1 */ function esplanade_title_permalink($title) { if (esplanade_is_teaser() && '' == $title) { $title = '→ ' . get_the_time(get_option('date_format')); } return $title; }