if ($wp_query->have_posts()) { ?> <?php while ($wp_query->have_posts()) { $wp_query->the_post(); ?> <li class="x-slide"> <article id="post-<?php the_ID(); ?> " <?php post_class('x-post-slider-entry'); ?> style="<?php echo x_ethos_entry_cover_background_image_style(); ?> "> <a href="<?php the_permalink(); ?> "> <div class="cover"> <div class="middle"> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date('F j, Y'); ?> </span>
function x_ethos_featured_index() { $entry_id = get_the_ID(); $index_featured_layout = get_post_meta($entry_id, '_x_ethos_index_featured_post_layout', true); $index_featured_size = get_post_meta($entry_id, '_x_ethos_index_featured_post_size', true); $index_featured_layout_class = $index_featured_layout == 'on' ? ' featured' : ''; $index_featured_size_class = $index_featured_layout == 'on' ? ' ' . strtolower($index_featured_size) : ''; $is_index_featured_layout = $index_featured_layout == 'on' && !is_single(); ?> <a href="<?php the_permalink(); ?> " class="entry-thumb<?php echo $index_featured_layout_class; echo $index_featured_size_class; ?> " style="<?php echo x_ethos_entry_cover_background_image_style(); ?> "> <?php if ($is_index_featured_layout) { ?> <span class="featured-meta"><?php echo x_ethos_post_categories(); ?> / <?php echo get_the_date('F j, Y'); ?> </span> <h2 class="h-featured"><span><?php x_the_alternate_title(); ?> </span></h2> <span class="featured-view">View Post</span> <?php } else { ?> <span class="view">View Post</span> <?php } ?> </a> <?php }