Ejemplo n.º 1
0
<?php

$parent_id = get_top_parent_id($post);
$banner_url = get_field('banner_image', $parent_id);
?>

<?php 
if ($banner_url) {
    ?>
<figure class="entry-hero" style="margin-top:-30px;">
    <img src="<?php 
    echo $banner_url;
    ?>
">
</figure>
<?php 
}
Ejemplo n.º 2
0
        ?>
	 <article class="post">
	 <?php 
        if (has_children() or $post->post_parent > 0) {
            ?>
			<nav class="site-nav children-links clearfix">
			<span class="parent-link"><a href="<?php 
            echo get_the_permalink(get_top_parent_id());
            ?>
"><?php 
            get_the_title(get_top_parent_id());
            ?>
</a></span>
			<ul>
					 <?php 
            $args = array('child_of' => get_top_parent_id(), 'title_li' => '');
            wp_list_pages();
            ?>
			 </ul>
			 </nav>
	 <?php 
        }
        ?>
	<h2><?php 
        the_title();
        ?>
</h2>
	<?php 
        the_content();
        ?>
	</article>