• 20-05-2010, 10:39:52
    #1
    gdi
    Üyeliği durduruldu
    merhaba arkadaslar,

    asagidaki kod da bir kategori haric diger yazılarını gostermek istiyorum. onu nasil yapabilirim ?

     <?php $i=1;while (have_posts()) : the_post(); ?> 
     
                        <div class="recentframe"> 
                            <div class="recentpic"> 
                             
                                <?php  
                                $image = get_post_custom_values("featured_image"); 
                                if (is_array($image) && $image[0]!=""){ 
                                $img =  $image[0]; 
                                }else{ 
                                 
                                 
                                 
                                $img = get_bloginfo('template_directory') . "/images/default2.gif"; 
                                } 
                                ?> 
        
                                <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $img;?>" alt="<?php the_title(); ?>"/></a> 
                             
                            </div> 
                            <div class="recentdes"> 
                                <div class="recentdate"> 
                                    <?php 
                                    $arc_year = get_the_time('Y'); 
                                    $arc_month = get_the_time('m'); 
                                    $arc_day = get_the_time('d'); 
                                    ?> 
                                     
                                </div> 
                                <h2 class="recenttitle"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_short_title(70); ?></a></h2> 
                                <div class="recentshortdes"> 
                                    <?php strip_tags(the_excerpt_main(70,'<a>','none',true,''),"<a><strong><br><p><b><em>"); ?> 
                                    </div> 
                                <!--div class="readabout"><?php the_tags('Readmore About: ', ', ', ''); ?></div--> 
                                <div class="recentreadmore"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Lexo me shume</a></div> 
                            </div> 
                            <div class="clear"></div> 
                        </div> 
                         
                        <?php } $i++; endwhile; ?> 
                        <?php wp_pagenavi(); ?>
  • 20-05-2010, 11:09:01
    #2
    <?php wp_list_cats('exclude=id'); ?>

    Kod bu,sanırım id yazan yere kategorinin adı yazılıyor.
  • 20-05-2010, 11:23:39
    #3
    gdi
    Üyeliği durduruldu
    ama onu nerde yazmam gerekiyor ustteki koda gore ?
  • 20-05-2010, 11:39:46
    #4
    kodla ugraşmadan direk eklenti var istiyorsanız onu deneyin

    http://wordpress.org/extend/plugins/simply-exclude/
  • 20-05-2010, 11:43:03
    #5
    gdi
    Üyeliği durduruldu
    bu oldu simdi