Küçük bir iste
11
●793
- 12-01-2010, 17:38:46Kimlik doğrulama veya yönetimden onay bekliyor.
- 12-01-2010, 21:39:39Üyeliği durdurulduHayır yazının tamamı oluyor.yazı sayısını adminden 10 yapsam anasayfada da kategori içlerinde de 10 yazı çıkıyor.ayvabiz adlı üyeden alıntı: mesajı görüntüle
üstad biri archives.php diğeri archive.phpGangstamonu adlı üyeden alıntı: mesajı görüntüle
Archives.php kod:
<?php /* Template Name: Archives */ ?> <?php get_header(); ?> <?php include(TEMPLATEPATH."/left.php");?> <?php include(TEMPLATEPATH."/right.php");?> <div id="middlepic"></div> <div id="content"> <?php get_header(); ?> <div id="arch"> <h2>Archives</h2> <br/> Archives by Month: <ul> <?php wp_get_archives('type=monthly'); ?> </ul> Archives by Subject: <ul> <?php wp_list_cats(); ?> </ul> </div> </div> <?php get_footer(); ?>Archive.php kod:
<?php get_header(); ?> <?php include(TEMPLATEPATH."/left.php");?> <?php include(TEMPLATEPATH."/right.php");?> <div id="middlepic"></div> <div id="content"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h3><?php echo single_cat_title(); ?></h3> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h3>Archive for <?php the_time('F jS, Y'); ?></h3> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h3>Archive for <?php the_time('F, Y'); ?></h3> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h3>Archive for <?php the_time('Y'); ?></h3> <?php /* If this is a search */ } elseif (is_search()) { ?> <h3>Search Results</h3> <?php /* If this is an author archive */ } elseif (is_author()) { ?> Author Archive <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archives <?php } ?> <?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?> <?php while (have_posts()) : the_post(); ?> <div class="postspace3"> </div> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <b><?php the_time('l, F jS, Y') ?></b> <?php the_excerpt(); ?> <?php endwhile; ?> <?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?> <?php else : ?> Not Found <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?> </div> <?php get_footer(); ?> - 18-01-2010, 11:13:46Wp Admin panelden yazı gösterimini on yaptın mı hocam ?zulfikar adlı üyeden alıntı: mesajı görüntüle