• 13-09-2008, 16:58:10
    #1
    Üyeliği durduruldu

    bu resimde gördüğünüz gibi temamda haberler iki sütun oluyor bunu nasıl tek sütuna çevirebilirim.
    isterseniz ana index şablonunun kodunu da vereyim düzeltirseniz sevinirim

     
    <?php get_header(); ?>
    
    
    <?php
    $the_query = new WP_Query('showposts=1&orderby=post_date&order=desc&cat='.get_option('featured_post_cat_id'));
    while ($the_query->have_posts()) : $the_query->the_post();
    $do_not_duplicate = $post->ID;
    ?>
    
    
    ">
    
    <h4><?php the_category(', ') ?></h4> <h5> - <?php the_time('F j, Y'); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h5>
    
    
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php the_content('Read the rest of this entry »'); ?>
    
    
    
    <?php endwhile; ?> 
    <?php while (have_posts()) : the_post(); 
    if ( $post->ID == $do_not_duplicate ) { continue; update_post_caches($posts); }
    ?>
    
    
    ">
    
    <h4><?php the_category(', ') ?></h4> <h5> - <?php the_time('F j, Y'); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h5>
    
    
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php the_content('Read the rest of this entry »'); ?>
    
    
    <h4>">Continue ...</h4>
    
    
    
    
    
    <?php endwhile; ?>
    <?php if (have_posts()) : ?>
    
    
    <p><?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('| Next Entries » ') ?></p>
    
    
    
    <?php else : ?>
    
    <h2>Not Found</h2>
    Sorry, but you are looking for something that isn't here.
    
    
    <?php endif; ?>
    
    
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
  • 13-09-2008, 18:53:33
    #2
    <?php get_header(); ?>
    <?php
    $the_query = new WP_Query('showposts=1&orderby=post_date&order=desc&cat='.get_option('featured_post_cat_id'));
    while ($the_query->have_posts()) : $the_query->the_post();
    $do_not_duplicate = $post->ID;
    <h4><?php the_category(', ') ?></h4> <h5> - <?php the_time('F j, Y'); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h5>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php the_content('Read the rest of this entry »'); ?>
    <h4>">Continue ...</h4>
    <?php endwhile; ?>
    <?php if (have_posts()) : ?>
    <p><?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('| Next Entries » ') ?></p>
    <?php else : ?>
    <h2>Not Found</h2>
    Sorry, but you are looking for something that isn't here.
    <?php endif; ?><?php get_sidebar(); ?><?php get_footer(); ?>
    dener misin?
  • 13-09-2008, 21:24:28
    #3
    Üyeliği durduruldu
    denedim olmadı hocam anasayfa şimdi hiç gelmiyor.(beyaz ekranda)
  • 13-09-2008, 21:52:34
    #4
    <?php get_header(); ?>
    <?php
    $the_query = new WP_Query('showposts=1&orderby=post_date&order=desc&cat='.get_option('featured_post_cat_id'));
    while ($the_query->have_posts()) : $the_query->the_post();
    $do_not_duplicate = $post->ID;
    ?>
    <?php the_content('Read the rest of this entry »'); ?>
    <?php endwhile; ?> 
    <?php while (have_posts()) : the_post(); 
    if ( $post->ID == $do_not_duplicate ) { continue; update_post_caches($posts); }
    ?>
    ">
    <h4><?php the_category(', ') ?></h4> <h5> - <?php the_time('F j, Y'); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h5>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php the_content('Read the rest of this entry »'); ?>
    <h4>">Continue ...</h4>
    <?php endwhile; ?>
    <?php if (have_posts()) : ?>
    <p><?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('| Next Entries » ') ?></p>
    <?php else : ?>
    <h2>Not Found</h2>
    Sorry, but you are looking for something that isn't here.
    <?php endif; ?><?php get_sidebar(); ?>
    <?php get_footer(); ?>
    bunu dene.
  • 13-09-2008, 22:11:47
    #5
    Üyeliği durduruldu
    hocam bu kodda da site tamamen karıştı...
  • 13-09-2008, 22:47:03
    #6
    cehago adlı üyeden alıntı: mesajı görüntüle
    hocam bu kodda da site tamamen karıştı...
    pek anlamıyorum ama frontpageden düzenleyince olucakmış gibi duruyor
  • 13-09-2008, 22:52:11
    #7
    Alıntı
    <?php get_header(); ?>
    <?php
    $the_query = new WP_Query('showposts=1&orderby=post_date&order=desc &cat='.get_option('featured_post_cat_id'));
    while ($the_query->have_posts()) : $the_query->the_post();
    $do_not_duplicate = $post->ID;
    ?>
    ">
    <h4><?php the_category(', ') ?></h4> <h5> - <?php the_time('F j, Y'); ?> - <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></h5>
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
    <?php the_content('Read the rest of this entry »'); ?>
    <?php endwhile; ?>
    <?php while (have_posts()) : the_post();
    if ( $post->ID == $do_not_duplicate ) { continue; update_post_caches($posts); }
    ?>
    ">
    <?php endwhile; ?>
    <?php if (have_posts()) : ?>
    <p><?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('| Next Entries » ') ?></p>
    <?php else : ?>
    <h2>Not Found</h2>
    Sorry, but you are looking for something that isn't here.
    <?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
    dener misin..
  • 13-09-2008, 22:56:34
    #8
    Üyeliği durduruldu
    bu kodda olmadı:S isterseniz tema adını vereyim bi bakın temaya Tema adı:"Rebel Theme"
  • 13-09-2008, 23:00:54
    #9
    tema w*arez değilse ilk mesaja ekle. uğraştırma bizi aramakla