Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="posts">
- <h2 class="main-title"><span>Diğer Yazılar</span></h2>
- <?php
- query_posts('offset=4');
- if (have_posts()) : $counter = 0;
- while (have_posts()) : the_post(); $counter++;
- ?>
- <?php if ($counter == 2) { ?>
- <div class="post">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('big-thumb'); ?></a>
- <?php } else { ?>
- <img src="<?php echo catch_that_image(); ?>" width="630" height="390" alt="<?php the_title(); ?>" />
- <?php } ?>
- <h2><?php the_title(); ?></h2>
- <?php the_excerpt(); ?>
- </div>
- <?php } elseif ($counter == 4) { ?>
- <div class="clear"></div>
- <div class="ads">
- <h2 class="main-title"><span>Reklam Alanı</span></h2>
- </div>
- <div class="clear"></div>
- <?php } elseif ($counter == 6) { ?>
- <div class="post">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail('big-thumb'); ?></a>
- <?php } else { ?>
- <img src="<?php echo catch_that_image(); ?>" width="630" height="390" alt="<?php the_title(); ?>" />
- <?php } ?>
- <h2><?php the_title(); ?></h2>
- <?php the_excerpt(); ?>
- </div>
- <?php } else { ?>
- <div class="post">
- <?php if ( (function_exists('has_post_thumbnail')) && (has_post_thumbnail()) ) { ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail(); ?></a>
- <?php } else { ?>
- <img src="<?php echo catch_that_image(); ?>" width="210" height="130" class="mini" alt="<?php the_title(); ?>" />
- <?php } ?>
- <h2><?php the_title(); ?></h2>
- <?php the_excerpt(); ?>
- </div>
- <?php } ?>
- <?php
- endwhile; endif; wp_reset_postdata();
- ?>
- </div>
Add Comment
Please, Sign In to add comment