Ejemplo n.º 1
0
<div class="latest-articles">

<?php while ( have_posts() ) : the_post(); ?>
	<?php /* How to display standard posts and search results */  ?>

        <article class="article-archive <?php echo $firstClass; ?>" id="post-<?php the_ID(); ?>">
			<?php $firstClass = ""; ?>
			<?php ?>
	            <?php the_post_thumbnail('news-home'); ?>
                <h2><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( '%s' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
                	<?php the_title(); ?></a></h2>

                <p><?php the_excerpt(); ?></p>

				<?php category_label(get_the_ID()); ?>

				<?php if(get_post_type( get_the_ID() ) == 'tribe_events'): ?>
					<p class="date"><?php echo "Event date: " . tribe_get_start_date(get_the_ID()); ?></p>
				<?php else: ?>
					<p class="date"><?php the_time('l, F jS, Y') ?></p>
				<?php endif; ?>
		</article>

		<?php comments_template( '', true ); ?>

<?php endwhile; // End the loop. Whew. ?>

</div>

<?php /* Display navigation to next/previous pages when applicable */ ?>
Ejemplo n.º 2
0
"><?php 
            the_title();
            ?>
</a></h2>
							<p><?php 
            the_excerpt();
            ?>
</p>
						</article>
						<?php 
        } else {
            ?>
						
						<article class="no-image">
							<?php 
            category_label(get_the_ID());
            ?>
							<h2><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
						</article>
						
						<?php 
        }
        ?>
																		
					<?php 
Ejemplo n.º 3
0
									<h2><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark" title="<?php 
            the_title();
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
									<p><?php 
            the_excerpt();
            ?>
</p>
									<?php 
            category_label($post->ID);
            ?>
								</article>
						<?php 
        }
    }
}
$post = $orig_post;
wp_reset_query();
?>
				
			</div>
		
			<div class="services-6">
				
				<?php