The standard post type used in includes/format is as follows
<?php
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,'full' );
$image = aq_resize( $img_url, 920, '', true );
$post_lightbox = get_post_meta( get_the_ID(), 'mt_post_lightbox', true);
$img_alt = get_the_title();
?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="post-inner clearfix">
<?php if ( !is_single() ) { ?>
<?php get_template_part('/includes/meta-top' ); ?>
<?php } ?>
<?php if ( has_post_thumbnail() ) { ?>
<div class="post-item clearfix">
<div class="lightbox-photo">
<?php
switch( $post_lightbox ) {
case 'yes':
echo '<a class="image-overlay fancybox" href="'.$img_url.'" title="'.$img_alt.'">',
'<img src="'.$image.'" alt="'.$img_alt.'" />',
'</a>';
break;
case 'no':
echo '<img src="'.$image.'" alt="'.$img_alt.'" />';
break;
default:
break;
}
?>
</div>
</div><!-- / .post-item -->
<?php } ?>
<div class="grid-post-inner">
<?php if ( !is_single() ) { ?>
<div class="post-top clearfix">
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
</div>
<?php } ?>
<?php get_template_part('/includes/meta' ); ?>
<div class="post-content clearfix">
<?php
if ( !is_single() ) {
global $more;
$more = 0;
the_content(__('Continue reading →', 'mthemes'));
} else {
the_content();
}
?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'mthemes' ), 'after' => '</div>' ) ); ?>
</div><!-- / .post-content -->
</div><!-- / .grid-post-inner -->
</div><!-- / .post-inner -->
<div class="clear"></div>
</div><!-- / .post -->
<div class="clear"></div>
When using single.php without single-aol_ad.php everything displays as it should. If I add <?php the_content(); ?> the content duplicates. I want to modify the sidebar displayed by using single-aol_ad.php and specifying a specific one. That part works except the submission form isn’t displayed when using single-aol_ad.php. As a test I replaced everything between <!-- BEGIN .post -->
and <!-- END .post -->
with the code above, the contents of the standard post type used in includes/format.
Mike