sonrası ilk:Ekran eski ben wordpress eski sonrası ilk görüntüler çalışıyorum
<ul id="submenu_productos" class="clearfix">
<?php
$IDOutsideLoop = $post->ID;
while(have_posts()) {
the_post();
foreach((get_the_category()) as $category)
$my_query = new WP_Query('category_name=' . $category->category_nicename . '&orderby=date&order=desc&showposts=100');
if($my_query) {
while ($my_query->have_posts()) {
$my_query->the_post(); ?>
<li<?php print (is_single() && $IDOutsideLoop == $post->ID) ? ' class="test"' : ''; ?>>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> |
</li>
<?php
}
}
}
?>
</ul>
eğer ben: Ben geçerli kategorinin yazının listesini almak için bu kodu kullanıyorum
"&order=desc&"
'u "&order=ASC&"
olarak değiştirin, siparişi yine aynı şekilde. Burada ne yapıyorum?
Tarih sipariş etmeli ve başlık değil mi? – CustomX
Bunu da değiştirdim. Hala aynı –
"& orderby = date & order = asc" –