Webseite-Freund-des-Spessarts/theme/friends-spessart/page.php

17 lines
485 B
PHP

<?php get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<main id="inhalt" class="page-main">
<?php
$fds_parent = wp_get_post_parent_id( get_the_ID() );
get_template_part( 'parts/page-head', null, array(
'title' => get_the_title(),
'kicker' => $fds_parent ? get_the_title( $fds_parent ) : '',
) );
?>
<article class="page-wrap">
<div class="entry-content"><?php the_content(); ?></div>
</article>
</main>
<?php endwhile; ?>
<?php get_footer(); ?>