content.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!-- Post -->
  2. <!-- vai pegar o id do post the_ID() -->
  3. <div id="post-<?php the_ID();?>" <?php post_class('post col-md-6'); ?>>
  4. <?php if(has_post_thumbnail()): ?>
  5. <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" class="post-thumbnail">
  6. <?php the_post_thumbnail('full', array('class' => 'img-responsive')); ?>
  7. <!-- <img src="http://placekitten.com/610/300" class="img-responsive"> -->
  8. <?php endif;?>
  9. </a>
  10. <article class="post-excerpt">
  11. <header>
  12. <!-- <a href="#"><h3>Lorem Ipsum</h3></a> -->
  13. <!-- <p class="post-meta">
  14. by <a href="#">Cory Simmons</a> on <span>November 15th, 2014</span>
  15. </p> -->
  16. <?php
  17. echo '<a href="'. get_the_permalink() .'"><h3>' . get_the_title() .'</h3></a>';
  18. // get the post meta - usando uma funcao que vai pegar os metadados do post - autor, data e etc
  19. tuts_post_meta();
  20. // criada dentro de functions
  21. ?>
  22. </header>
  23. <p>
  24. <?php the_content(__('Continue reading', 'tuts')); ?>
  25. </p>
  26. </article>
  27. </div>
  28. <!-- /.post -->