• Resolved matek12345

    (@matek12345)


    Hi,

    I have a problem, i have rebuilt some template, and now i create new template sites.

    My problem is that i can’t get the loop working, it’s returning only the child site that i what that loop to display in.

    My question is, is there some limitations to the loop, and how to get it working.

    here is the code in the template site

    <?php
    /*
    Template Name: Czytelnia
    */
    ?>
    <?php get_header(); ?>
    <div class="latestor"> </div>
    
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="box" id="post-<?php the_ID(); ?>">
    
    <div class="cover">
    	<div class="title">
    		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    	</div>
    
    	<div class="sentry">
    		<?php $preview = get_post_meta($post->ID, 'preview', $single = true); ?>
    		<img class="ethumb" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $preview; ?>&h=100&w=290&zc=1" alt=""/> 
    
    		<?php the_excerpt(); ?> 
    
    							<div class="clear"></div>
    	</div>
    
    </div>
    
    <div class="sinfo">
    
    <div class="rmore"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"> Wi?cej... </a></div>
    
    </div>
    </div>
    		<?php endwhile; ?>
     <div id="navigation">
    		<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
    </div>
    
    	<?php else : ?>
    
    		<h1 class="title">Not Found</h1>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Loop in other template site’ is closed to new replies.