Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : ?>
- <div class="one column">
- <?php while(have_posts()) : $i++; if(($i % 2) == 0) : $wp_query->next_post(); else : the_post(); ?>
- <div class="post-item">
- <a href="<?php the_permalink(); ?>"><img class="post-image" src="<?php echo bloginfo('template_directory') . '/img/postImages/alba1.jpg'; ?>" alt="" title=""/></a>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_content(); ?>
- </div>
- <?php endif; endwhile; ?>
- </div>
- <?php else: ?>
- <p>Sorry, it doesn't appear as if there are any posts. <a href="<?php bloginfo('url'); ?>">Click here</a> to go back to the home page.</p>
- <?php endif; ?>
- <?php $i = 0; rewind_posts(); ?>
- <?php if (have_posts()) : ?>
- <div class="column">
- <?php while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
- <div class="post-item">
- <a href="<?php the_permalink(); ?>"><img class="post-image" src="<?php echo bloginfo('template_directory') . '/img/postImages/alba1.jpg'; ?>" alt="" title=""/></a>
- <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
- <?php the_content(); ?>
- </div>
- <?php endif; endwhile; ?>
- </div>
- <?php else: ?>
- <p>Sorry, it doesn't appear as if there are any posts. <a href="<?php bloginfo('url'); ?>">Click here</a> to go back to the home page.</p>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement