page-no-title.php 649 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Template Name: No Title
  4. *
  5. * A page template that renders the content without the page title. Selectable per
  6. * page (Page Attributes → Template) — replaces the old per-slug page-cv.php /
  7. * page-shop.php files that each existed only to drop the title.
  8. */
  9. get_header(); ?>
  10. <div class="container">
  11. <article id="content" class="single" role="main">
  12. <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
  13. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  14. <div class="entry-content">
  15. <?php the_content(); ?>
  16. </div>
  17. </div>
  18. <?php endwhile; ?>
  19. </article>
  20. </div>
  21. <?php get_footer(); ?>