• Hello everyone…

    I probably have a small problem but I’m having issues solving it. I haven’t had ANY issues with the loop.php file until now.

    I have a page called photos at https://sociallyaffluent.com/wp-25-teaser/photos/.

    The loop to call the images that are to appear is called ‘loop-photos.php’.

    In my page-photos.php file I call <?php get_template_part('loop','photos'); ?>

    The code in loop-photos.php is simple:

    <?php while ( have_posts() ) : the_post(); ?>
    
    <?php /* How to display posts in the Gallery category. */ ?>
    
    <?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) :  ?>
    
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    			<h2 class="entry-title"><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>
    
           <?php $post_title=trim(the_title('','',FALSE)); $symbol_loc=stripos($post_title,"@"); $title_search=substr($post_title, 0, $symbol_loc);?>
    
           <?php
    	   			for ($i=1; $i < 7; $i++)
    				{
    	  			   echo '<img src="images/gallerythumbs/"'.$title_search.'"/thumb'.$i.'.jpg" />';
    				}
    
    	   ?>
    
            </div><!-- #post-## -->
    
    <?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
    
    <?php endwhile; // End the loop. Whew. ?>

    Everthing looks to be there. So why isn’t it showing? Please help. I’ve made a post already for this issue and no one responded.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘LOOP NOT DISPLAYING POSTS…PLEASE HELP..’ is closed to new replies.