• This is my loop.php ; but my posts won’t loading infinite * till posts end* #sorry for bad english, but please help me please

    <?php if ( ! have_posts() ) : ?>
    	<div id="post-0" class="post not-found item-list">
    		<h1 class="entry-title"><?php _e( 'Not Found', 'tie' ); ?></h1>
    		<div class="entry">
    			<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>
    			<?php get_search_form(); ?>
    		</div>
    	</div>
    
    <?php else : ?>
    <?php
    $count = 0;
    $post_width = tie_post_width();
    $exc_home_cats = tie_get_option( 'exc_home_cats' );
    if( is_home() && $exc_home_cats ) query_posts( array( 'category__not_in' => $exc_home_cats , 'paged' => $paged) ); ?>
    <?php while ( have_posts() ) : the_post(); $count++;?>
    	<article <?php post_class('item-list rtl-item '.$post_width) ?>>
    		<div class="post-inner">
    			<?php
    				$format = get_post_format();
    				if( false === $format ) { $format = 'standard'; }
    			?>
    			 <?php get_template_part( 'content', $format ); ?>
    		</div>
    		<?php if( ( tie_get_option( 'show_comments' ) && get_comments_number() ) || tie_get_option( 'show_meta' ) ) : ?>
    		<ul class="post-footer">
    		<?php endif; ?>
    			<?php if( tie_get_option( 'show_meta' ) ): ?>
    
    <li>
    				<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'MFW_author_bio_avatar_size', 30 ) ); ?>
    				<?php _e( 'by: ' , 'tie' ); ?> <a>" title="<?php sprintf( esc_attr__( 'View all posts by %s', 'tie' ), get_the_author() ) ?>"><?php echo get_the_author() ?> </a>
    				<?php _e( 'in ' , 'tie' ); ?> <?php printf('%1$s', get_the_category_list( ', ' ) ); ?>
    				<p><span class="entry-visits"><a>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>"><?php echo tie_views(); ?></a></span>
    				<span class="entry-comments"><?php comments_popup_link('0', '1' , '%' ); ?></span>
    				<span class="entry-likes"><?php tie_post_likes() ?></span></p>
    			</li>
    			<?php endif; ?>
    			<?php tie_get_commentes() ?>
    		<?php if( ( tie_get_option( 'show_comments' ) && get_comments_number() ) || tie_get_option( 'show_meta' ) ) : ?> 
    
    		<?php endif; ?>
    
    	</article><!-- .item-list -->
    	<?php
    	if( tie_get_option('banner_within_posts_pos')){
    		if( tie_get_option('banner_within_posts_posts') == $count  && !is_paged() ) tie_banner('banner_within_posts' , '<article class="item-list rtl-item ads-posts '.$post_width.'"><div class="post-inner">' , '</div></article>' );
    	}else{
    		if( tie_get_option('banner_within_posts_posts') == $count ) tie_banner('banner_within_posts' , '<article class="item-list rtl-item ads-posts '.$post_width.'"><div class="post-inner">' , '</div></article>' );
    	}
    	?>
    <?php endwhile;?>
    	<?php
    	if( tie_get_option('banner_within_posts_pos')){
    		if( tie_get_option('banner_within_posts_posts') == $count  && !is_paged() ) tie_banner('banner_within_posts' , '<article class="item-list rtl-item ads-posts '.$post_width.'"><div class="post-inner">' , '</div></article>' );
    	}else{
    		if( tie_get_option('banner_within_posts_posts') == $count ) tie_banner('banner_within_posts' , '<article class="item-list rtl-item ads-posts '.$post_width.'"><div class="post-inner">' , '</div></article>' );
    	}
    	?>
    <?php endif; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘error in loop.php no posts loading’ is closed to new replies.