category.php sayfamda 3 tane tablo var
3 tabloda da post başlıklarını yazdırmak istiyorum.
Yani ilk tablomda o kategoriye ait ilk 20 konum olacak sonraki tabloda 20 ile 40 arası konu başlıklarım olacak diğer tablomda 40 ile 60 arası konu başlıklarım olacak.
Bunu nasıl yapabiliriz ?
3 tablo içine postları almak
7
●384
- 17-02-2010, 21:25:51offset işler mi acep bunda bilmiyorum
<div class="geneltablo"> <div class="tablocan"> <?php $recent = new WP_Query("showposts=20"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; ?> </div> <div class="tablocan"> <?php $recent = new WP_Query("showposts=20&offset=20"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; ?> </div> <div class="tablocan"> <?php $recent = new WP_Query("showposts=20&offset=40"); while($recent->have_posts()) : $recent->the_post();?> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <?php endwhile; ?> </div> </div>.geneltablo { widht:750px; padding:0px; clear;both; } .tablocan { float:left; widht:250px; }css leri style.css ekle..diğerlerinide oraya ekle bi..ama bilmiyorum offset çalışır mı çalışmaz mı..