• 1.
    <?php
  • 2.
    /**
  • 3.
     * Template part for displaying posts.
  • 4.
     *
  • 5.
     * @link https://codex.wordpress.org/Template_Hierarchy
  • 6.
     *
  • 7.
     * @package Boston
  • 8.
     */
  • 9.
     
  • 10.
    ?>
  • 11.
     
  • 12.
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  • 13.
    	<header class="entry-header">
  • 14.
    		<?php
  • 15.
    			if ( is_single() ) {
  • 16.
    				the_title( '<h1 class="entry-title">', '</h1>' );
  • 17.
    			} else {
  • 18.
    				the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
  • 19.
    			}
  • 20.
     
  • 21.
    		if ( 'post' === get_post_type() ) : ?>
  • 22.
    		<div class="entry-meta">
  • 23.
    			<?php boston_posted_on(); ?>
  • 24.
    		</div><!-- .entry-meta -->
  • 25.
    		<?php
  • 26.
    		endif; ?>
  • 27.
    	</header><!-- .entry-header -->
  • 28.
     
  • 29.
    	<?php if ( has_post_thumbnail( ) ) { ?>
  • 30.
    	<aside class="entry-thumbnail">
  • 31.
    		<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'boston-list-medium' ); ?></a>
  • 32.
    	</aside>
  • 33.
    	<?php } ?>
  • 34.
     
  • 35.
    	<div class="entry-summary">
  • 36.
    		<?php 	the_content( sprintf(
  • 37.
    				__( '<div class="entry-more">Read More <span class="screen-reader-text"> "%s"</span></div>', 'boston' ),
  • 38.
    				get_the_title()
  • 39.
    			) );
  • 40.
     		?>
  • 41.
    	</div><!-- .entry-summary -->
  • 42.
     
  • 43.
     
  • 44.
     
  • 45.
    	<footer class="entry-footer">
  • 46.
    		<?php //boston_entry_footer(); ?>
  • 47.
    	</footer><!-- .entry-footer -->
  • 48.
    </article><!-- #post-## -->
  • 49.
     
<?php /** * Template part for displaying posts. * * @link https://codex.wordpress.org/Template_Hierarchy * * @package Boston */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <?php if ( is_single() ) { the_title( '<h1 class="entry-title">', '</h1>' ); } else { the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); } if ( 'post' === get_post_type() ) : ?> <div class="entry-meta"> <?php boston_posted_on(); ?> </div><!-- .entry-meta --> <?php endif; ?> </header><!-- .entry-header --> <?php if ( has_post_thumbnail( ) ) { ?> <aside class="entry-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'boston-list-medium' ); ?></a> </aside> <?php } ?> <div class="entry-summary"> <?php the_content( sprintf( __( '<div class="entry-more">Read More <span class="screen-reader-text"> "%s"</span></div>', 'boston' ), get_the_title() ) ); ?> </div><!-- .entry-summary --> <footer class="entry-footer"> <?php //boston_entry_footer(); ?> </footer><!-- .entry-footer --> </article><!-- #post-## -->

Copy Code to Clipboard Raw

Sign-in or Create a Free Account.

Snippi uses Twitter or Facebook to register and create accounts. Registration will enable you to keep track of your snippets. We never spam your timeline or wall. Ever.

Sign-in with Facebook Sign-in with Twitter