• 17-12-2010, 21:21:31
    #19
    mihenk adlı üyeden alıntı: mesajı görüntüle
    cok teşekkurler benımde işime yaradaı fakat bun yazının özel alandakı resmini de nasıl cekebılırım
    aynen özel alanda takıldık :s
  • 17-12-2010, 21:50:18
    #20
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <? include "wp-config.php"; ?>
    <?php
    $this_post = $post;
    $category = get_the_category(); $category = $category[0]; $category = $category->cat_ID;
    $posts = get_posts('numberposts=6&offset=0&orderby=rand&order=DESC&category='.$category);
    $count = 0;
    foreach ( $posts as $post ) {
    if ( $post->ID == $this_post->ID || $count == 5) {
    unset($posts[$count]);
    }else{
    $count ++;
    }
    }
    ?>
    
    
    <?php if ( $posts ) : ?> 
    
    
    <div id="related-category">
    
    <div class="related-cat-entry">
    <h5><?php _e('Benzer Tarifler'); ?></h5>
    
    <?php foreach ( $posts as $post ) : ?>
    <?php setup_postdata($post); ?>
    
    <div class="related-cat-meta post-<?php the_ID(); ?>">
    
    <?php $values = get_post_custom_values("thumb"); if (isset($values[0])) { ?>
    
    <div class="related-cat-img">
    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" alt="<?php the_title(); ?>" width="50" height="50" border="0" /></a></div>
    <!-- RELATED CATEGORY IMAGE END -->
    
    <?php } else { ?>
    
    <div class="related-cat-img">
    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo get_featcat_image(); ?>" alt="<?php the_title(); ?>" width="50" height="50" border="0" /></a></div>
    <!-- RELATED CATEGORY IMAGE END -->
    
    <?php } ?>
    
    
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    
    
    
    <p><?php the_excerpt_feat_cat(); ?></p>
    
    <div class="clearfix"></div>
    </div><!-- RELATED CAT META <?php the_ID(); ?> END -->
    
    <?php endforeach // $posts as $post ?>
    
    </div><!-- RELATED ENTRY END -->
    
    </div><!-- RELATED CATEGORY END -->
    
    <?php else : ?>
    
    <?php { /* nothing */ } ?>
    
    <?php endif // $posts ?>
    
    <?php
    $post = $this_post;
    unset($this_post);
    ?>
    include için
    <?php $adres = @file_get_contents("http://www.oyuntreni.org/atari/yazilar.php");
    echo $adres;
    ?> 
    <?php } ?>
    arkadaşlar temamdan esinlenerek sonunda yaptım ancak stil dosyası oluşturulmalı benden bu kadar stil dosyasını yapan arkadaşta bi zahmet buradan paylaşsın
  • 22-07-2015, 01:34:24
    #21
    Hocalar merhaba. Konu hakkında sıkıntı yaşıyorumda. Acaba biri çözebilirmi.

    http://irfanbarutcu.com/blog/sonyazilar.php dosyamı oluşturdum sorunsuz çalışıyor

    Anasayfama
    <?php include "blog/sonyazilar.php"; ?>
    kodunu ekleyince sitemde bu şekilde hata alıyorum. http://prntscr.com/7vfsdy

    Sizce neden böyle bir hata alıyorum. Bir fikri veya çözümü olan varmıdır?
  • 22-07-2015, 09:27:46
    #22
    bondcemil adlı üyeden alıntı: mesajı görüntüle
    ...
    Varista adlı üyeden alıntı: mesajı görüntüle
    ...
    exceLLency adlı üyeden alıntı: mesajı görüntüle
    ...
    Sckn adlı üyeden alıntı: mesajı görüntüle
    ...
    üstteki mesajım için yardımlarınızı bekliyorum arkadaşlar...