I am working on a site and am having an issue with one of the categories. There is plenty of content on the site and there are seven different categories. All of the categories display the correct posts except for the very last one. I've searched all around and have not seen this exact issue come up (oftentimes, people just have the wrong posts in all their categories).
Please see the URL I'm working with. It is http://www.glossandglam.com/blog/ and the category that is not working is "Tutorials." Thanks for any help you can provide.
Here is code for more detail:
<?php if (have_posts()) : ?> <ul style="list-style-type:none;"> <?php if ($paged == 0) $offset = 0; else $offset = ($paged - 1) * 11; global $post; $category = get_the_category($post->ID); $category = $category->cat_ID; $myposts = get_posts(array('numberposts' => 11, 'offset' => $offset, 'category__in' => array($category), 'post__not_in' => array($post->ID),'post_status'=>'publish')); foreach($myposts as $post) : setup_postdata($post); ?> <li id="category_li"> <div id="image_con"> <div id="image_recent"> <a href="<?php the_permalink(); ?>"><?php set_post_thumbnail_size( 200, 200 ); the_post_thumbnail(); ?></a> </div> </div> <div id="cr_content"> <a href="<?php the_permalink(); ?>"> <div class="gloss_glam_font"> <?php the_title(); ?></div> <hr> <div class="excerpt_cat"><?php the_excerpt(); ?></div> </a> </div> <div id="clearfix"> </div> </li> <?php endforeach; ?> <?php wp_reset_query(); ?> </ul>
A quick explanation is that we are displaying 11 posts per page with a custom pagination at the bottom. I am using the "Category Post List Widget" plugin to style the list items that are being generated.