فایل ایندکس چیز زیادی نداره فکر کنم مشکل از page.php باشه
index.php
<?php get_header(); ?>
<div id="index">
<?php dynamic_sidebar('homepage'); ?>
</div>
<?php get_footer(); ?>
page.php
<?php get_header(); ?>
<div id="innerpage" class="page">
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); $count++; ?>
<?php
if(get_post_meta(get_the_id(),'gallery',true) != off){
$instance = array
( "title" => get_the_title(),
"post_id" => get_the_id(),
"image_title" => get_option('woo_page_title'),
"image_caption" => get_option('woo_page_caption'),
"size" => get_option('woo_page_size'),
"rows" => get_option('woo_page_rows'),
"lb" => get_option('woo_page_lightbox')
);
echo '<div class="page_gallery">';
echo exposure_attachments($instance);
echo '</div>';
}
?>
<!-- Post Starts -->
<div class="post wrap">
<?php if(get_post_meta(get_the_id(),'gallery',true) != on){?>
<h2><?php the_title(); ?></h2>
<?php } ?>
<div class="innercontent">
<div class="pagecontent">
<?php the_content(); ?>
</div>
<?php if(get_post_meta(get_the_id(),'comments',true) == 'on') { comments_template();}; ?>
</div>
</div>
<!-- Post Ends -->
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.','woothemes') ?></p>
<?php endif; ?>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div>