$recent = new WP_Query("cat=1&showposts=3");cat=1 yazan yeri, cat=1,2,3 gibi değiştir
Onu biliyorum,
$recent = new WP_Query("(cat=4&showposts=1");
$recent = new WP_Query("cat=5&showposts=1");
$recent = new WP_Query("cat=6&showposts=1");
$recent = new WP_Query("cat=7&showposts=1");
$recent = new WP_Query("cat=8&showposts=1");
while($recent->have_posts()) : $recent->the_post();yapınca 4-5-6-7-8 kategorilerinden birine yazılmış en sonuncu mesaj çıkıyor.
toplamda her kategoriden 1 mesaj yani 5 mesaj cıkmasını istiyorum.
$recent1 = new WP_Query("(cat=4&showposts=1");
$recent2 = new WP_Query("cat=5&showposts=1");
$recent3 = new WP_Query("cat=6&showposts=1");
$recent=$recent1+$recent2+$recent3;
while($recent->have_posts()) : $recent->the_post();gibi birşey yapmayı denedim hata verdi.