Пример #1
0
	<div class="wrapper">

	<?php 
    while ($post_query->have_posts()) {
        $post_query->the_post();
        ?>
		<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class(array('col', 'box'));
        ?>
> 
		    <div class="flex-wrapper">
			<?php 
        pp_post_thumbnail('pp-grid-thumbnail', true);
        ?>
				
				<span class="date">
				<?php 
        echo esc_html(get_the_date('M d'));
        ?>
				</span>

				<h2 class="entry-title">
					<a title="<?php 
        the_title_attribute();
        ?>
" href="<?php 
        the_permalink();
        ?>
Пример #2
0
	
	<div class="primary col content-area">
			<?php 
while (have_posts()) {
    the_post();
    ?>
				<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class(array('box', 'post'));
    ?>
>
					
					<?php 
    pp_post_thumbnail('pp-large');
    ?>
					<div class="entry-content">
						<?php 
    the_content(__('Continue reading <span class="meta-nav">&rarr;</span>', 'pp'));
    ?>
					</div>
				</article>

			<?php 
}
?>
	</div>

	<?php 
get_sidebar();
Пример #3
0
if (have_posts()) {
    // Start the Loop.
    while (have_posts()) {
        the_post();
        ?>

          <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class(array('col', 'box'));
        ?>
> 
                <div class="flex-wrapper">
                    <?php 
        pp_post_thumbnail('pp-grid-thumbnail');
        ?>

                    <h2 class="entry-title">
                        <a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a>
                    </h2>
                    
                    <?php 
        the_excerpt();
        ?>
Пример #4
0
    // blog listing or learning page
    ?>

		<?php 
    if (has_post_thumbnail()) {
        ?>
			<div class="entry-wrap clear">
				<div class="entry-summary">
					<?php 
        the_excerpt();
        ?>
				</div>

				<div class="entry-thumbnail">
					<?php 
        pp_post_thumbnail('large');
        ?>
				</div>

			</div>
		<?php 
    } else {
        ?>
			<div class="entry-summary">
				<?php 
        the_excerpt();
        ?>
			</div>
		<?php 
    }
    ?>
Пример #5
0
<?php

/**
 * The template used for displaying page content
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>
	<?php 
pp_post_thumbnail();
?>

	<div class="entry-content">
	<?php 
do_action('pp_entry_content_start');
?>

		<?php 
the_content();
?>

	<?php 
do_action('pp_entry_content_end');
?>