Guest User

ED-Come creare Template Wordpress Parte 4 (index.php)

a guest
May 10th, 2018
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.  
  3. <?php if (have_posts()) :
  4.  
  5. // Start the Loop.
  6. while (have_posts()) : the_post();
  7. ?>
  8. <h1><?php the_title();?></h1>
  9. <p><?php the_content();  ?></p>
  10. <?php
  11. if ( comments_open() || get_comments_number() ) {
  12. comments_template();
  13. }
  14. endwhile;
  15. ?>
  16.  
  17. <?php
  18. else :
  19. get_template_part( 'content', 'none' );
  20. endif;
  21.  
  22. ?>
  23. <?php get_footer(); ?>
RAW Paste Data