• 12-02-2008, 16:56:33
    #1
    Arkadaşlar ben bu yanlarda menu var ortada hani eklediğiniz yazılar oluyorya eklediğiniz yazıların altına diyelim ben Resimler diye bölüm yapıp eklediğim en son resimlerin orada çıkması mumkunmu :S
  • 12-02-2008, 17:02:24
    #2
    burada anlatmak istediğimi anlamışınızdır sanırım
  • 12-02-2008, 17:17:00
    #3
    tabi mümkün. kodlarla oynarak yapabilirsin bunu
  • 12-02-2008, 17:22:22
    #4
    oynadım ama yapamadım siz bi kendi temanıza göre yapıp kodu verseniz..
  • 12-02-2008, 18:20:14
    #5
    yardım edecek biri varmı peki :S

    <?php get_header(); ?>
    <div id="wrapper">
    	<div id="content">
    
    	<?php if (have_posts()) : ?>
    		
    		<?php while (have_posts()) : the_post(); ?>
    				
    			
    				
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<div id="date">
    			<div class="d"><?php the_time('d') ?></div>
    			<div class="m"><?php the_time('F') ?></div>
    			<div class="j"><?php the_time('y') ?></div>
    			</div>
    			<br />
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> için kalıcı bağlantı"><?php the_title(); ?></a></h2>
    				<br />
    				<small><?php //the_time('d F Y') ?> <!-- by <?php the_author() ?> --></small>
    				<br />
    				<div class="entry">
    					<?php the_content('Devamını oku &raquo;'); ?>
    				</div>
    
    
    		
    				<p class="postmetadata">Kategori <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Düzenle','','<strong>|</strong>'); ?>  <?php comments_popup_link('Yorum Yok »', '1 Yorum »', '% Yorum »'); ?></p>
    			</div>
    	
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Önceki Yazılar') ?></div>
    			<div class="alignright"><?php previous_posts_link('Sonraki Yazılar &raquo;') ?></div>
    		</div>
    
    		
    	<?php else : ?>
    
    		<h2 class="center">Bulunamadı</h2>
    		<p class="center">Üzgünüm aradığınız şey burada değil.</p>
    		
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    </div>
    <?php include 'images/dark/dark.php';?>

    bun kodda nasıl yapabilirim :S
  • 12-02-2008, 18:41:32
    #6
    Misafir
    wordpress mantığını hiç bilmiyorum ancak php kodu ile şu şekilde yapılır;

    <?php
    include 'ayar.php';
    $sorgu=mysql_query ("SELECT * FROM resimtabloadi order by id desc");
    while ($kaan=mysql_fetch_assoc($sorgu) ) {
    ?>
    <img src="<?=$kaan[resimler]?>" border="0" />
    <?php } ?>
  • 12-02-2008, 18:47:38
    #7
    kaantukek adlı üyeden alıntı: mesajı görüntüle
    wordpress mantığını hiç bilmiyorum ancak php kodu ile şu şekilde yapılır;
    <?php
    include 'ayar.php';
    $sorgu=mysql_query ("SELECT * FROM resimtabloadi order by id desc");
    while ($kaan=mysql_fetch_assoc($sorgu) ) {
    ?>
    <img src="<?=$kaan[resimler]?>" border="0" />
    <?php } ?>

    wp bilende bunu uyarlarsa iyi olur
  • 12-02-2008, 21:35:15
    #8
    <?php get_header(); ?>
    <div id="wrapper">
        <div id="content">
        <?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); $say++; ?>
                <div class="post" id="post-<?php the_ID(); ?>">
                <div id="date">
                <div class="d"><?php the_time('d') ?></div>
                <div class="m"><?php the_time('F') ?></div>
                <div class="j"><?php the_time('y') ?></div>
                </div>
                <br />
                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> için kalıcı bağlantı"><?php the_title(); ?></a></h2>
                    <br />
                    <small><?php //the_time('d F Y') ?> <!-- by <?php the_author() ?> --></small>
                    <br />
                    <div class="entry">
                        <?php the_content('Devamını oku &raquo;'); ?>
                    </div>
                    <p class="postmetadata">Kategori <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Düzenle','','<strong>|</strong>'); ?>  <?php comments_popup_link('Yorum Yok »', '1 Yorum »', '% Yorum »'); ?></p>
                </div>
    <?php if ($say == 1) { include (TEMPLATEPATH . '/sonresimler.php'); } ?>
            <?php endwhile; ?>
            <div class="navigation">
                <div class="alignleft"><?php next_posts_link('&laquo; Önceki Yazılar') ?></div>
                <div class="alignright"><?php previous_posts_link('Sonraki Yazılar &raquo;') ?></div>
            </div>
        <?php else : ?>
            <h2 class="center">Bulunamadı</h2>
            <p class="center">Üzgünüm aradığınız şey burada değil.</p>
        <?php endif; ?>
        </div>
    <?php get_sidebar(); ?>
    </div>
    <?php include 'images/dark/dark.php';?>
    döngünün içine $say değişkenini oluşturduk, ve her döngüde 1 artıyor. ilk yazıdan sonra çıksın dedim mesela ondan $say == 1 dedim. ben resimleri başka yerden include edersin diye düşündüm. artık kendine göre yaparsın if in içini
  • 12-02-2008, 21:54:32
    #9
    Wordpresste son mesajı çağırmak kodu şudur eğer nextgen gallery kullanıyorsan tam istediğin şey.

    		<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php endwhile; ?>
    cat=1 categori id si
    showposts=1 ise kaç tane son mesaj istiyorsan o kadar yazıyosun