• Resolved i_banks

    (@i_banks)


    I’m going to need some quality assistance with this issue please.

    Everything was working fine. Then when I created the most recent category and assigned posts to it, one category was effected.

    Is there a limit on category posts as to how many types of categories the loop can display? Logic says that it wouldn’t make sense, but I’m trying to make of a really weird situation, where I have 6 posts in one category and the loop is only displaying one of them.

    I deleted any additional files created and I just have the original theme files now, with the exception of the modified ‘header’,’loop’,’style’, and ‘index.php’ files.

    My code is simple:

    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php /* How to display posts in the asides category */ ?>
    
    <?php if ( in_category(_x('homepage','', 'twentyten')) ) : ?>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?> style="float:left; text-align:center;">
    
    			<h2 class="entry-title" style="height:60px; width:250px; text-align:center; border-bottom:1px solid #b5b5b5;"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
    			<div class="gallery-thumb">
    						<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php if ( has_post_thumbnail() ) {the_post_thumbnail('home-post');
    } ?></a>
    						</div><!-- .gallery-thumb -->
    
    <div class="excerpt-area" style="height:75px; width:250px; text-align:center;"><?php the_excerpt(); ?></div>
    
    </div><!-- #post-## -->
    
    <?php endif; ?>
    
    <?php endwhile; ?>

    The ‘original’ loop.php displays ALL of my posts. But as soon as I ask for posts in a category called ‘homepage’, I only get one post…?..Please help and offer suggestions. Thanks to all.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Simple Loop Code Not Working Properly’ is closed to new replies.