Advertisement
Guest User

single.php

a guest
Sep 25th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <?php
  2.  
  3. $wp_query = new WP_Query();
  4. query_posts( array( ‘post_type’ =>’post’, ‘showposts’ => 1, ‘paged’=>$paged ));
  5. if(have_posts()):
  6. while ($wp_query -> have_posts()) : $wp_query -> the_post();
  7.  
  8. ?>
  9. <div class=”grid-md-6-job-content left”><!–conteudo—>
  10. <?php $content = preg_replace(‘/(]*>)/’, ”, get_the_content());
  11. $content = apply_filters(‘the_content’, $content);
  12. echo $content;?>
  13. </div><!–final conteudo—->
  14.  
  15. <div class=”grid-md-6-job-title right”><!–titulo—>
  16. <span></span>
  17. <h1><?php the_title(); ?></h1>
  18. </div><!–final titulo—->
  19. <?php
  20. endwhile;
  21. endif;
  22. ?>
  23.  
  24. <div class=”navigation”><!—navegacao—>
  25. <div class=”next bg-nav”>
  26. <?php next_posts_link(‘<span></span>’) ?>
  27. </div>
  28. <div class=”prev bg-nav”>
  29. <?php previous_posts_link(‘<span></span>’) ?>
  30. </div>
  31. </div><!–final navegação—>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement