• 05-06-2010, 19:24:04
    #1
    Üyeliği durduruldu
    Wordpress i ilkdefa kullanıyorum o yüzden biraz yardıma ihtiyacım var arkadaşlar



    Bir tema indirdim temada yukarı resimdeki gibi alanlar var ben bu alanlara istediğim kategorideki son eklenen haberi getirmek istiyorum işte alanın index.php deki kodu:


        	<?php if (get_theme_mod('box1') == 'Enable') { ?>
    		<div class="postbox left">
    		<h1><a href="<?php echo get_category_link(get_theme_mod('boxcat1')); ?>"><?php echo cat_id_to_name(get_theme_mod('boxcat1')); ?></a></h1>
    			<div class="boxcontent">
    		    <?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    		    <div class="thumb">
          			<?php tj_thumbnail('boxthumbw', 'boxthumbh'); ?>
    		    </div> <!--end: thumb-->
    		    <h5><?php the_author_posts_link(); ?> // <?php the_time('M jS, Y') ?></h5>
    			<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    	      	<?php endwhile; ?> 
    	      	<div class="more"><div class="more">More &raquo;</div></div>   
    	      	<ul>
    	      		<?php $recent = new WP_Query("cat=".get_theme_mod('boxcat1')."&offset=1&showposts=".get_theme_mod('boxlist')); while($recent->have_posts()) : $recent->the_post();?>
    	      		<li><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></li>
    	      		<?php endwhile; ?>   
    	      	</ul>
    	      	</div> <!--end: boxcontent-->
    		</div> <!--end: postbox-->
    yardımlarınızı bekliyorum arkadaşlar.
  • 05-06-2010, 23:58:14
    #2
    Üyeliği durduruldu
    konu günceldir.