content-page.php 779 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * The template used for displaying page content
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fourteen
  7. * @since Twenty Fourteen 1.0
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <div class="entry-content">
  12. <?php
  13. if ( get_field('page_content') ) {
  14. while ( has_sub_field('page_content') ) {
  15. echo '<div class="content_area">' .
  16. ( get_sub_field('anchor_name') ? '<a class="anchor" name="' . get_sub_field('anchor_name') . '"></a>' : '' ) .
  17. apply_filters( 'the_content', get_sub_field('content_area') ) .
  18. '</div>';
  19. }
  20. }
  21. edit_post_link( __( 'Edit', 'twentyfourteen' ), '<span class="edit-link">', '</span>' );
  22. ?>
  23. </div><!-- .entry-content -->
  24. </article><!-- #post-## -->