1234567891011121314151617181920212223242526272829303132333435363738 |
- <!-- Post -->
- <!-- vai pegar o id do post the_ID() -->
- <div id="post-<?php the_ID();?>" <?php post_class('post col-md-6'); ?>>
-
- <?php if(has_post_thumbnail()): ?>
- <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" class="post-thumbnail">
- <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?>
- <!-- <img src="http://placekitten.com/610/300" class="img-responsive"> -->
- <?php endif;?>
- </a>
- <article class="post-excerpt">
- <header>
- <!-- <a href="#"><h3>Lorem Ipsum</h3></a> -->
- <!-- <p class="post-meta">
- by <a href="#">Cory Simmons</a> on <span>November 15th, 2014</span>
- </p> -->
- <?php
- echo '<a href="'. get_the_permalink() .'"><h3>' . get_the_title() .'</h3></a>';
- // get the post meta - usando uma funcao que vai pegar os metadados do post - autor, data e etc
- tuts_post_meta();
- // criada dentro de functions
-
- ?>
- </header>
- <p>
- <?php the_content(__('Continue reading', 'tuts')); ?>
- </p>
- </article>
- </div>
- <!-- /.post -->
|