• 06-03-2014, 21:32:35
    #1
    Üyeliği durduruldu
    php de yeniyim ve wordpress sitesi kodluyorum biraz bilgim var ama syntaxları içinden çıkmadım lütfen yardım edin kodları aşağıda vieriyorum


    <?php 
    		
    		// KONTROL EDİP ÇEKME
    if (get_option('beta_sondk') == "true" ) { 
    
    echo '<?php query_posts("showposts=1&orderby=date&cat=".get_option("beta_sondkid")."
    "); ?>
    		<?php while (have_posts()) : the_post(); ?>';
    
    echo '
    
    <div class="grid_12 first">
    
    
    
    
    			<div class="ssondakika">
    				<a class="all" title="'.<?php  the_title(); ?>.'" href="sondakika.html">
    					'.<?php  the_title(); ?>.'
    				</a>
    				<a class="sd_baslik" target="_blank" title="'.<?php  the_title(); ?>.'" href="'.<?php the_permalink(); ?>.'">
    					'.<?php  the_title(); ?>.'		</a>
    			</div>	
    		</div>';
    	<?php endwhile; ?>
    }
    
    else{
    
    echo "";
    
    }
    
    		
    		
    		
    		
    		?>
  • 06-03-2014, 22:20:39
    #2
    Üyeliği durduruldu
    Dostum katletmişsin kodu kusura bakma da. Böyle dene lütfen.

    <?php

    // KONTROL EDİP ÇEKME
    if (get_option('beta_sondk') == "true" ) {

    query_posts("showposts=1&orderby=date&cat=".get_op tion("beta_sondkid")");
    while (have_posts()) : the_post();
    ?>
    <div class="grid_12 first">




    <div class="ssondakika">
    <a class="all" title="<?php the_title(); ?>" href="sondakika.html">
    <?php the_title(); ?>
    </a>
    <a class="sd_baslik" target="_blank" title="<?php the_title(); ?>" href="<?php the_permalink(); ?>">
    <?php the_title(); ?>
    </a>
    </div>
    </div>

    <?php
    endwhile;
    }
    else{

    }
    ?>