• 17-12-2009, 12:21:10
    #1
    Merhabalar;
    WP_Query();$query1->query('showposts='.$theme_options["feaPostCount"].'&&cat='.$theme_options["featuredCatID"]);
    kodu şeklinde bir sorgum var. Bu sorgu ya DESC Limit 0,6 eklemek istiyorum nasıl yapabilirim.
    Teşekkürler
    Emre
  • 17-12-2009, 15:50:35
    #2
    buna bakarak sorgu gönderemezsin sonuçta query1 nesnesiyle query fonksiyonuna parametre yolluyorsun, o fonksiyon yapısını bilmeden birşey denilemez.
  • 17-12-2009, 18:47:23
    #3
    Evet sql sorgusu yok ki burada.

    örneğin

    mysql_query(Select * from uyeler order by id desc LIMIT 0,6)

    eğer sql sorgusunu bulursan en sonuna ekleyebilirsin sadece örnek verdim.
  • 17-12-2009, 23:20:01
    #4
    Tüm kodum:
    	
    		<!-- featured entries -->
    			<div id="slider2" class="sliderwrapper">
    				<?php $a = 1; $query1 = new WP_Query();$query1->query('showposts='.$theme_options["feaPostCount"].'&&cat='.$theme_options["featuredCatID"]); ?>
    				<?php while ($query1->have_posts()) : $query1->the_post(); ?>	
    				<div class="contentdiv">
    					<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php echo catch_that_image() ?> " alt="" height="270" width="495" /></a>
    					<h2 class="featuredTitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a></h2>
    				</div>
    				<?php $a++; endwhile; wp_reset_query(); ?>
    			</div>
    
    			<div id="paginate-slider2" class="pagination">
    				<?php $b = 1; $query2 = new WP_Query();$query2->query('showposts='.$theme_options["feaPostCount"].'&cat='.$theme_options["featuredCatID"]); ?>
    				<?php while ($query2->have_posts()) : $query2->the_post(); ?>
    					<a href="#" class="toc"><img src="<?php echo catch_that_image() ?> " alt="" height="50" width="75" /></a>
    				<?php $b++; endwhile; wp_reset_query(); ?>
    				<div class="clear"></div>
    			</div>
    
    			<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/slideItFeatured.js"></script>
    			<!-- End of featured entries -->
    10 sonuç çekiyor ben 6 tane göstermek istiyorum
  • 18-12-2009, 02:03:30
    #5
    Yardım eder misin, sayfa tasarımını çok bozuyor
  • 18-12-2009, 02:12:33
    #6
    buradan yapılacak gibi durmuyor kullandığın tema hangisi ona göre bakalımbüyük ihtimal temanın ayarlarından değişecek gibi...
  • 18-12-2009, 02:18:03
    #7
    kafilem adlı üyeden alıntı: mesajı görüntüle
    buradan yapılacak gibi durmuyor kullandığın tema hangisi ona göre bakalımbüyük ihtimal temanın ayarlarından değişecek gibi...
    Standart tema, bu kodu manset.php olarak kaydedip include ediyorum
  • 18-12-2009, 03:35:34
    #8
    kafilem adlı üyeden alıntı: mesajı görüntüle
    buradan yapılacak gibi durmuyor kullandığın tema hangisi ona göre bakalımbüyük ihtimal temanın ayarlarından değişecek gibi...
    Hocam ilgin ve çözümün için çok saol
  • 18-12-2009, 03:39:51
    #9
    EmreUnan adlı üyeden alıntı: mesajı görüntüle
    Hocam ilgin ve çözümün için çok saol
    önemli değil emre
    kodu aşağıdaki şekilde değiştirince çözüldü...
    new WP_Query();$query1->query('showposts=6&&cat='.$theme_options["featuredCatID"]);