Hey folks,
I want to move the entry-meta below the featured image for the Post Archive. I’m using Renew. I know that I need to create the child-view (or whatever you call it)—my question is how to do that.
Entry-meta lives in _content-post-header.php and would need to move to content.php. Is it as simple as the below?
<header class="entry-header">
<?php if ( is_single() ) : ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<?php else : ?>
<h2 class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>
</h2>
<?php endif; ?>
// REMOVE <?php x_renew_entry_meta(); ?> REMOVE //
</header>
And then:
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-wrap">
<?php x_get_view( 'renew', '_content', 'post-header' ); ?>
<?php if ( has_post_thumbnail() ) : ?>
<div class="entry-featured">
<?php x_featured_image(); ?>
</div>
<?php endif; ?>
// ADD <?php x_renew_entry_meta(); ?> ADD //
<?php x_get_view( 'global', '_content' ); ?>
</div>
</article>
Or is there a better way to do this?
Thanks! Luke