• 18-09-2007, 13:42:36
    #10
    Misafir
    sidebar.php (yan menü) erkan
  • 18-09-2007, 13:52:11
    #11
    Alıntı
    <hr class="low" />

    <center>
    <script type="text/javascript"><!--
    google_ad_client = "pub-4009038513091365";
    google_ad_width = 120;
    google_ad_height = 90;
    google_ad_format = "120x90_0ads_al";
    //2007-09-17: termalturizmi.com
    google_ad_channel = "0078330208";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_text = "000000";
    google_color_url = "008000";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </center>

    <!-- subcontent ................................. -->
    <div id="subcontent">

    <?php /**
    * Pages navigation. Disabled by default because all new pages are added
    * to the main navigation.
    * If enabled: Blix default pages are excluded by default.
    *
    ?>
    <h2><em>Sayfalar</em></h2>
    <ul class="pages">
    <?php
    $excluded = BX_excluded_pages();
    wp_list_pages('title_li=&sort_column=menu_order&ex clude='.$excluded);
    ?>
    </ul>

    <?php */ ?>

    <?php if (is_home()) { ?>

    <?php
    /**
    * If a page called "about_short" has been set up its content will be put here.
    * In case that a page called "about" has been set up, too, it'll be linked to via 'More'.
    */
    $pages = BX_get_pages('with_content');
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    $page_content = $page->post_content;

    if ($page_name == "about") $more_url = '<a href="'.get_page_link($page_id).'" class="more">Daha Fazla</a>';
    if ($page_name == "about_short") {
    $about_title = $page_title;
    $about_text = BX_remove_p($page_content);
    }
    }
    if ($about_text != "") {
    echo "<h2><em>".$about_title."</em></h2>\n";
    echo "<p>".$about_text;
    if ($more_url != "") echo " ".$more_url;
    echo "</p>\n";
    }
    }
    ?>

    <h2><em>Kategoriler</em></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>

    <h2><em>Destekleyenler</em></h2>

    <ul class="links">
    <?php get_links('-1', '<li>', '</li>', '', 0, 'name', 0, 0, -1, 0); ?>
    </ul>

    <h2><em>Okuyucular</em></h2>

    <ul class="feeds">
    <li><a href="<?php bloginfo_rss('rss2_url'); ?> ">Yazılar (RSS)</a></li>
    <li><a href="<?php bloginfo_rss('comments_rss2_url'); ?> ">Yorumlar (RSS)</a></li>
    </ul>

    <?php } ?>


    <?php if (is_single()) { ?>

    <h2><em>Takvim</em></h2>

    <?php get_calendar() ?>

    <h2><em>En Son Yazılar</em></h2>

    <ul class="posts">
    <?php BX_get_recent_posts($p,10); ?>
    </ul>

    <?php } ?>


    <?php if (is_page("archives") || is_archive() || is_search()) { ?>

    <h2><em>Takvim</em></h2>

    <?php get_calendar() ?>

    <?php if (!is_page("archives")) { ?>

    <h2><em>Ayın Mesajları</em></h2>

    <ul class="months">
    <?php get_archives('monthly','','','<li>','</li>',''); ?>
    </ul>

    <?php } ?>

    <h2><em>Kategorinin Mesajları</em></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    </ul>


    <?php } ?>
    <script type="text/javascript"><!--
    google_ad_client = "pub-4009038513091365";
    google_ad_width = 120;
    google_ad_height = 600;
    google_ad_format = "120x600_as";
    google_ad_type = "text_image";
    //2007-09-17: termalturizmi.com
    google_ad_channel = "0078330208";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_text = "000000";
    google_color_url = "008000";
    google_ui_features = "rc:10";
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>

    </div> <!-- /subcontent -->
    Sitede termalturizmi.com olmadı dediginizi yaptım ama hala cıkıyor
    alt menu ID sı 9,10
  • 19-09-2007, 00:39:49
    #12
    Kategorilerin altında, destekleyenler kısmının üstünde bulunan bu kodu bul:
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    <?php wp_list_cats('sort_column=name&exclude=1,9,10,12'); ?>
    kodunu kendi alt kategori numaralarına göre düzenleyerek diğerinin yerine yerleştir.

    Hepsi bu kadar...
  • 20-09-2007, 14:33:06
    #13
    yazılanlar hep göstermek istemediğimiz kategorileri exclude ile listelemek.Bunun daha guzel bi çözümü var başka bir başlıkta yazdım.
    https://www.r10.net/wordpress/82976-a...erekenler.html
  • 23-09-2007, 10:02:47
    #14
    Üyeliği durduruldu
    corleoneant adlı üyeden alıntı: mesajı görüntüle
    İşte çözüm yolu:
    <?php wp_list_cats('sort_column=name&exclude=5,47,7,11,32,30,26,46,52,31,18,17,13,,22,53,34,29,27,25,41,35,36,24,16,43,38,40,44,37,45,51,49,28,21'); ?>
    "exclude=" den sonra alt kategorilerin numaralarını aralara virgül koyarak yazarsan kategoriler görünmez. Hepsini görünmez yaptığında ana kategori de kaybolacaktır. Bunun için de ana kategoriye herhangi bir konu aç veya varolan konulardan birini kopyala.
    Alt kategori numaralarını: wp-admin/yönet/kategoriler kısmından bulabilirsin.
    Saol kardesim bende bunu ariyordum ellerin dert görmesin
  • 28-09-2007, 03:04:43
    #15
    Ben daha kısa bir çözüm önereyim ama denemedim, baştan uyarayım. Yine de zararsızdır, bir dezavantajını gördüğünüzde işlemi geri alarak çözebilirsiniz sorunu. Neyse, temanızın style.css dosyasına:
    .child {display:none}
    CSS kodunu eklediğinizde olay (sanırım) çözülecektir.