• 05-02-2014, 21:52:46
    #1
    merhaba
    arkadaşlar wp sitede 7k kadar konu var
    her konunun en basında büyük bir resim var arkasından acıklama geliyor.
    ben resimden sonra içerikte olan hiç birseyin gözükmemesini istiyorum. silinebilir de gizlenebilir de . nasıl bir kodla yapılabilir ?
  • 05-02-2014, 22:07:09
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    @beachturk; temanızın single.phpsini konu eklerseniz yardımcı olabiliri(m/z).
  • 05-02-2014, 22:10:03
    #3
    saintx adlı üyeden alıntı: mesajı görüntüle
    @beachturk; temanızın single.phpsini konu eklerseniz yardımcı olabiliri(m/z).
    buyrun hocam
    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    </div>
    
    <?php include(TEMPLATEPATH."/reklam728.php");?>
    <?php include(TEMPLATEPATH."/reklam160x600.php");?>
    
    <div id="content" class="narrowcolumn" role="main">
    	<?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    
    <div class="post box" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></h2>
    <div class="box-t">
    <div class="box-b">
    <small class="date2">
    </small>	
    
    <?php include(TEMPLATEPATH."/reklam336x280.php");?>
    <br />
    
    <div class="entry">
    <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    
    <?php include(TEMPLATEPATH."/reklam468x15.php");?>
    <br />
    
    <?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    		
    <small class="date2">
    <br />
    <?php the_tags('Etiketler: ', ', ', ''); ?><br />
    
    </small>						</p>
    		
    					</div>
    				</div>
    			</div>
    		</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    	
    
    <?php endif; ?>
    
    </div>
    <?php get_footer(); ?>
    </div>
  • 05-02-2014, 22:17:06
    #4
    @beachturk; single.php'yi boşaltıp aşağıdaki betiği yapıştırıp deneyebilir misiniz?

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    </div>
    <?php include(TEMPLATEPATH."/reklam728.php");?>
    <?php include(TEMPLATEPATH."/reklam160x600.php");?>
    	<div id="content" class="narrowcolumn" role="main">
    		<?php if (have_posts()): while (have_posts()): the_post(); ?>
    		<div class="post box" id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    			<div class="box-t">
    				<div class="box-b">
    					<?php include(TEMPLATEPATH."/reklam336x280.php");?>
    					<br />
    					<div class="entry">
    						<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    						<?php include(TEMPLATEPATH."/reklam468x15.php");?>
    						<br />
    						<?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    					</div>
    				</div>
    			</div>
    		</div>
    		<?php endwhile; else: endif; ?>
    	</div>
    </div>
  • 05-02-2014, 22:29:13
    #5
    değişmedi hocam aynı
    saintx adlı üyeden alıntı: mesajı görüntüle
    @beachturk; single.php'yi boşaltıp aşağıdaki betiği yapıştırıp deneyebilir misiniz?

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    </div>
    <?php include(TEMPLATEPATH."/reklam728.php");?>
    <?php include(TEMPLATEPATH."/reklam160x600.php");?>
    	<div id="content" class="narrowcolumn" role="main">
    		<?php if (have_posts()): while (have_posts()): the_post(); ?>
    		<div class="post box" id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    			<div class="box-t">
    				<div class="box-b">
    					<?php include(TEMPLATEPATH."/reklam336x280.php");?>
    					<br />
    					<div class="entry">
    						<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    						<?php include(TEMPLATEPATH."/reklam468x15.php");?>
    						<br />
    						<?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    					</div>
    				</div>
    			</div>
    		</div>
    		<?php endwhile; else: endif; ?>
    	</div>
    </div>
  • 05-02-2014, 22:50:56
    #6
    @beachturk; önbellekleme eklentisi kullanıyor musunuz? kullanıyorsanız, önbelleği temizleyip deneyebilir misiniz?
  • 05-02-2014, 22:58:18
    #7
    saintx adlı üyeden alıntı: mesajı görüntüle
    @beachturk; önbellekleme eklentisi kullanıyor musunuz? kullanıyorsanız, önbelleği temizleyip deneyebilir misiniz?
    kapadım hocam eklentiyi aynı durum
  • 05-02-2014, 23:21:54
    #8
    Yazı içindeki sadece resimleri gösterecek değil mi yanlış anlamadım ?


    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    </div>
     
    <?php include(TEMPLATEPATH."/reklam728.php");?>
    <?php include(TEMPLATEPATH."/reklam160x600.php");?>
     
    <div id="content" class="narrowcolumn" role="main">
       <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
     
     
    <div class="post box" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></h2>
    <div class="box-t">
    <div class="box-b">
    <small class="date2">
    </small> 
     
    <?php include(TEMPLATEPATH."/reklam336x280.php");?>
    <br />
     
    <div class="entry">
    <?php 
    
    $icerik = get_the_content();
    $resimAra = '/<img.+src=[\'"]([^\'"]+)[\'"].*>/i';
    preg_match($resimAra, $icerik, $sadeceResimler);
    
    echo $sadeceResimler[0];
    
    ?>
     
    <?php include(TEMPLATEPATH."/reklam468x15.php");?>
    <br />
     
    <?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
           
    <small class="date2">
    <br />
    <?php the_tags('Etiketler: ', ', ', ''); ?><br />
     
    </small>                </p>
           
                   </div>
                </div>
             </div>
          </div>
     
       <?php comments_template(); ?>
     
       <?php endwhile; else: ?>
        
     
    <?php endif; ?>
     
    </div>
    <?php get_footer(); ?>
    </div>
  • 06-02-2014, 00:04:46
    #9
    @beachturk; bende yanlış anlamışım galiba örnek olay single php ile alakalı the_content'te replace yapılması gerekiyor. örnek bi' içerik koyarsanız uygun kodu verebiliri(m/z).

    --R10.NET; Flood Engellendi -->-> Yeni yazılan 06-02-2014 mesaj 00:04:46 -->-> Daha önceki 05-02-2014 mesaj 23:30:41 --

    @beachturk; alttaki kodları single.phpye yapıştırıp deneyebilir misiniz?

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    </div>
     
    <?php include(TEMPLATEPATH."/reklam728.php");?>
    <?php include(TEMPLATEPATH."/reklam160x600.php");?>
     
    <div id="content" class="narrowcolumn" role="main">
       <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
     
     
    <div class="post box" id="post-<?php the_ID(); ?>">
    <h2><?php the_title(); ?></h2>
    <div class="box-t">
    <div class="box-b">
    <small class="date2">
    </small> 
     
    <?php include(TEMPLATEPATH."/reklam336x280.php");?>
    <br />
     
    <div class="entry">
    <?php
    	
    	// the_content('<p class="serif">Read the rest of this entry &raquo;</p>');
    	
    	$content = get_the_content();
    	
    	$image = preg_match("#\<img\sclass\=\"(.*?)wp\-image(.*?)\"(.*?)\>#si", $content, $matches) ? $matches[0] : null;
    	
    	echo $image;
    	
    ?>
     
    <?php include(TEMPLATEPATH."/reklam468x15.php");?>
    <br />
     
    <?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
           
    <small class="date2">
    <br />
    <?php the_tags('Etiketler: ', ', ', ''); ?><br />
     
    </small>                </p>
           
                   </div>
                </div>
             </div>
          </div>
     
       <?php comments_template(); ?>
     
       <?php endwhile; else: ?>
        
     
    <?php endif; ?>
     
    </div>
    <?php get_footer(); ?>
    </div>