• 15-11-2015, 23:47:50
    #1
    Merhaba arkadaşlar sorunumu tam olarak dile getiremediğim için böyle bir başlık yazdım şimdi kısaca sorunumdan bahsedeyim.

    Bir müşterim için tema yapıyorum. Tema yapımında index sol ve sağ sidebarlar var. Herşey anasayfada düzgünce çalışıyor. Single'ı yapmaya başladım doğru düzgün çalışıyor fakat sağ sidebarda içerik çeken alanlarım (duyuru vb.) single sayfasına geçince single.php'deki konuyu gösteriyor sadece.

    şöyle bir resim ve kodlarla açıklayayım.
    Bu Anasayfadaki

    Bu da içerik sayfasından


    Şimdi de kodları vereyim.

    Sağ Sidebar

    	<h1>Duyurular</h1>
                    <ul>
                    <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="10" direction="up">
                                                      
    <?php query_posts($query_string . '&cat=3&showposts=10'); ?>
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post(); ?>
    												  
    													  <li  class="  ">
                                        <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
                                      </li>
                                                    <?php endwhile; ?>
    <?php endif; ?>	     
    											  </marquee>
                    </ul>
    Single

    <?php get_header(); ?>
      <?php include (TEMPLATEPATH . "/solsidebar.php"); ?>
             <div id="ic"  class="blok-icerik">
                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?>
    				<div id="mod_18617" class="mod-icerik ">
                        <h1><?php the_title(); ?></h1>
                        	                        <img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&w=650&h=400&zc=0" alt="<?php the_title(); ?>" class="responsive" />   <?php } ?>
    <p><br></p><p style="margin-top: 6px; margin-bottom: 6px; color: rgb(20, 24, 35); font-family: helvetica, arial, sans-serif; font-size: 14px; line-height: 19.32px;">
    <?php the_content();?>
    
    </p>
    
    <p><br></p>    </div>
        <?php endwhile; ?>
    	  
    	  <?php endif; ?>		
                    </div>
    				<?php include (TEMPLATEPATH . "/sagsidebar.php"); ?>
    				<?php get_footer(); ?>

    Bu konuda bir fikri olan varsa çok memnun olurum. Yoksa farklı şeyler deneyeceğim artık.
  • 16-11-2015, 10:38:41
    #2
    sağ sidebar ı aşağıdaki ile değişin.

    Alıntı
    <h1>Duyurular</h1>
    <ul>
    <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="10" direction="up">

    <?php query_posts($query_string . '&showposts=10'); ?>
    <?php if(have_posts()) : ?>
    <?php while(have_posts()) : the_post(); ?>

    <li class=" ">
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    </li>
    <?php endwhile; ?>
    <?php endif; ?>
    </marquee>
    </ul>
    yukardaki olmaz ise aşağıdakini deneyin.


    Alıntı
    <h1>Duyurular</h1>
    <ul>
    <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="10" direction="up">

    <?php query_posts('showposts=10'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a><br />
    <?php endwhile;?>

    <?php endif; ?>
    </marquee>
    </ul>
  • 16-11-2015, 13:41:06
    #3
    burakscan adlı üyeden alıntı: mesajı görüntüle
    sağ sidebar ı aşağıdaki ile değişin.



    yukardaki olmaz ise aşağıdakini deneyin.


    İlk olarak çok teşekkür ederim cevabınız için ben siz yazmadan önce çözümü buldum

    Kod olan sidebarı (içerik çekme işlemi yaptığım)
    Alıntı
    <?php get_sidebar(); ?>
    komutu ile çektim. sagsidebar.php dosyasının adını da sidebar.php yaptım düzeldi.