Here’s what the single.php code looks like, just trying to figure out where to put the <?php do_action('comic-area'); ?>. Putting it at the very top of this document makes the comic and the navigation show up below the featured image (so the comic page displays twice).
<?php
// =============================================================================
// VIEWS/RENEW/WP-SINGLE.PHP
// -----------------------------------------------------------------------------
// Single post output for Renew.
// =============================================================================
$fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true );
?>
<?php get_header(); ?>
<div class="x-container max width offset">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php x_get_view( 'renew', 'content', get_post_format() ); ?>
<?php x_get_view( 'global', '_comments-template' ); ?>
<?php endwhile; ?>
</div>
<?php if ( $fullwidth != 'on' ) : ?>
<?php get_sidebar(); ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
Plugin Author
Frumph
(@frumph)
you would put it under the x-container div and I would need to see the content.php file the one that x_get_view punches out; to tell you how to stop the featured image from displaying
Hi Frumph! Once again, you’re awesome for responding so quickly!
Here’s the content.php file:
<?php
// =============================================================================
// VIEWS/RENEW/CONTENT.PHP
// -----------------------------------------------------------------------------
// Standard post output for Renew.
// =============================================================================
?>
<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; ?>
<?php x_get_view( 'global', '_content' ); ?>
</div>
</article>
Plugin Author
Frumph
(@frumph)
change:
<?php if ( has_post_thumbnail() ) : ?>
to:
<?php if ( has_post_thumbnail() && ($post->post_type !== 'comic')) : ?>
basically that says if the post type isn’t comic, then go ahead and do this
Bam, done and done! You’re the best!