• 07-03-2009, 14:12:29
    #1
    s.a arkadaşlar ben siteme ( www.site.com/blog )şeklinde wordperess kurdum. worperessin son eklenen yazı ve yorumlarını (www.site.com) index'de nasıl gösterebilirm..!yardımlarınızı bekliyorum. Teşekürler
  • 07-03-2009, 14:17:12
    #2
    hostunda bir /blog klasöründe bir .htaccess oluştur...

    içine şu kodları ekle..

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^siteniz.com [nc]
    rewriterule ^(.*)$ http://www.siteniz.com/$1 [r=301,nc]
    siteniz.com'ları düzenle...tamamdır...
  • 07-03-2009, 15:09:10
    #3
    lucky13boy kodları .htaccess'e ekledim worperessin son eklenen yazı ve yorumlarını (www.site.com) index'de nasıl gösterebilirim
  • 07-03-2009, 21:48:06
    #4
    pardon yaa sorunu yanlış anlamışım...bunun için rss kullanabilirsin...
  • 07-03-2009, 21:54:09
    #5
    <?php
    require('wp-config.php' );
    function SonYazilar() {
        global $wpdb;
        $kac_tane_yazi_gosterilsin = 10;
        $yazilar = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status ='publish' ORDER BY ID DESC LIMIT 0,$kac_tane_yazi_gosterilsin");
        $cikti .= '<ul>';
        foreach($yazilar as $yazi){
            $yazi_url=get_permalink($yazi->ID);
            $cikti .='<li><a href="'.$yazi_url.'">'.iconv(get_settings('blog_charset'), "ISO-8859-9",$yazi->post_title).'</a></li>';
        }
        $cikti .= '</ul>';
        echo $cikti;
        die();
    }
    switch ($_GET['git']) {
        case 'sonyazilar':
        SonYazilar();
        break;
    }
    ?>
    bunu son10konu.php olarak kaydet, ftp ye at.

    sonra konuların indexte gözükmesini istediğin yere şunu ekle:

      <? include("http://www.siteadi.com/son10konu.php?git=sonyazilar"); ?>
  • 08-03-2009, 01:39:29
    #6
    kurabiye adam şöyle bir hatayla karşılaştım ilgilendiğin için çok saol

    Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/nesohbet/public_html/deneme.php on line 1

    Warning: include(http://www.nesohbet.com/son10konu.php?git=sonyazilar) [function.include]: failed to open stream: no suitable wrapper could be found in /home/nesohbet/public_html/deneme.php on line 1

    Warning: include() [function.include]: Failed opening 'http://www.nesohbet.com/son10konu.php?git=sonyazilar' for inclusion (include_path='.:/opt/lsws/lsphp5/lib/php') in /home/nesohbet/public_html/deneme.php on line 1
  • 09-11-2013, 17:35:18
    #7
    peki bu işlemin html kodu nasıl onuda verebilir misiniz arkadaşlar _???