• 25-01-2015, 00:49:32
    #1
    Merhaba arkadaşlar kullandığım temada yazılarımı eskiden yeniye sıralamak istiyorum. Eskiden yeniye sıralamanın kodunu buldum fakat nereye ekleyeceğimi bilemedim.

    Buradaki kodların neresine ekleyeceğim acaba?

    <?php 
    					$first_cat = get_option('an_first_cat'); 
    					$first_cat_id = get_cat_ID($first_cat);
    					$my_query = new WP_Query('cat=1&showposts=12');
    					while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    				?>
  • 25-01-2015, 20:18:22
    #2
    bilen yokmu
  • 25-01-2015, 20:25:33
    #3
    ozerx adlı üyeden alıntı: mesajı görüntüle
    Merhaba arkadaşlar kullandığım temada yazılarımı eskiden yeniye sıralamak istiyorum. Eskiden yeniye sıralamanın kodunu buldum fakat nereye ekleyeceğimi bilemedim.

    Buradaki kodların neresine ekleyeceğim acaba?

    <?php 
    					$first_cat = get_option('an_first_cat'); 
    					$first_cat_id = get_cat_ID($first_cat);
    					$my_query = new WP_Query('cat=1&showposts=12');
    					while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    				?>

    <?php 
    					$first_cat = get_option('an_first_cat'); 
    					$first_cat_id = get_cat_ID($first_cat);
    					$my_query = new WP_Query('cat=1&showposts=12&order=ASC');
    					while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    				?>
    Bu şekilde dener misiniz ?

    Edit : pardon kodun son hali yukarıdaki gibidir.
  • 25-01-2015, 20:33:28
    #4
    truser adlı üyeden alıntı: mesajı görüntüle
    <?php 
    					$first_cat = get_option('an_first_cat'); 
    					$first_cat_id = get_cat_ID($first_cat);
    					$my_query = new WP_Query('cat=1&showposts=12&order=ASC');
    					while ($my_query->have_posts()) : $my_query->the_post();$do_not_duplicate = $post->ID;
    				?>
    Bu şekilde dener misiniz ?

    Edit : pardon kodun son hali yukarıdaki gibidir.
    harikasın hocam sağol oldu. rep verdim