Sure, I looked at the files page.php
and single.php
.
I changed the lines in page.php
from:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="entryMeta">
<h2 class="singlePageTitle"><?php the_title(); ?></h2>
</div>
<div id="innerContent">
<div class="post">
<?php the_content(); ?>
</div>
</div><!-- Enf of innerContent -->
<?php endwhile; else : endif; ?>
to:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div id="entryMeta">
<h2 class="singlePageTitle"><?php the_title(); ?></h2>
</div>
<div id="innerContent">
<div class="post">
<?php the_content(); ?>
</div>
</div><!-- Enf of innerContent -->
</div>
<?php endwhile; else : endif; ?>
and changed the lines in single.php
:
<div id="innerContent">
<?php if($theme_options['enablePhotoGallery'] == 1) { ?>
<?php if ( in_category($theme_options["photoGalCatID"]) ): ?>
<img src="<?php viva('NpAdvSinglePhoto','17'); ?>" alt="<?php the_title(); ?>" class="phLargePhoto" />
<?php endif; ?>
<?php } ?>
<?php if($theme_options['enableVideo'] == 1) { ?>
<?php if ( in_category($theme_options["videoCatID"]) ): ?>
<div class="video">
<object type="application/x-shockwave-flash" style="width:506px; height:280px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
<param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object>
</div>
<?php endif; ?>
<?php } ?>
<?php the_content(); ?>
<?php comments_template(); ?>
</div><!-- Enf of innerContent -->
to:
<div id="innerContent">
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php if($theme_options['enablePhotoGallery'] == 1) { ?>
<?php if ( in_category($theme_options["photoGalCatID"]) ): ?>
<img src="<?php viva('NpAdvSinglePhoto','17'); ?>" alt="<?php the_title(); ?>" class="phLargePhoto" />
<?php endif; ?>
<?php } ?>
<?php if($theme_options['enableVideo'] == 1) { ?>
<?php if ( in_category($theme_options["videoCatID"]) ): ?>
<div class="video">
<object type="application/x-shockwave-flash" style="width:506px; height:280px;" data="<?php echo get_post_meta($post->ID, 'video', true); ?>">
<param name="movie" value="<?php echo get_post_meta($post->ID, 'video', true); ?>" /></object>
</div>
<?php endif; ?>
<?php } ?>
<?php the_content(); ?>
</div>
<?php comments_template(); ?>
</div><!-- Enf of innerContent -->
Some CSS changes might still be needed to make things look right though.