merhaba arkadaşlar..wp kurdum siteme.
pagenaviyi ekledim.ama 1 2 3 4.. diye devam ediyor ama tıklayınca sayfa değişmiyor.yani 1 sayfada kalıyor.nasıl düzeltebilirim.lütfen yardımcı olun.şimdiden teşekkürler..
sayfa numaralandırma hakkında
11
●735
- 20-05-2010, 16:32:17inanamazsın kaç gündün bakıyom kimse yardım etmiyor.inşallah biri bizi görürMaLcoLm_x adlı üyeden alıntı: mesajı görüntüle
- 20-05-2010, 16:40:04Kimlik doğrulama veya yönetimden onay bekliyor.reset_query kullan sanırım olur.
- 20-05-2010, 17:48:37
- 20-05-2010, 18:11:15
<?php wp_reset_query(); ?>
Sayfalama için ne kullanıyorsunuz bilmiyorum ama sayfalama kodundan önce yukardaki kodu yazın. Başıma gelmişti ve çözmüştüm. - 21-05-2010, 16:35:34
<?php get_header(); ?> <?php $my_query = new WP_Query('showposts=1'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <div class="top_post" id="post-<?php the_ID(); ?>"> <div class="post_title"> <h2> <div class="headline"> Örgüevim ^^ </div> <div class="headline_date"> <?php the_time('F jS, Y') ?> </div> </h2> </div> <div class="top_entry"> <div class="top_titles"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div> <?php the_content('Read the rest of this entry »'); ?> </div> <div class="post_bottom"> <div class="post_cat"> Filled Under: <?php the_category(', ') ?> </div> </div> </div> <?php endwhile; ?> <?php rewind_posts(); ?> <div id=""> <center><script type="text/javascript"><!-- google_ad_client = "pub-9018702257962108"; /* 336x280, oluşturulma 12.05.2010 */ google_ad_slot = "9840507158"; google_ad_width = 336; google_ad_height = 280; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <h3> </h3> </div> <div id="content"> <?php query_posts('showposts=10&offset=1'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="mag_posts" id="post-<?php the_ID(); ?>"> <div class="top_mag_posts"> <div class="bottom_mag_posts"> <h2><?php the_category(', ') ?></h2> <div class="mag_posts_entry"> <div class="top_mag_titles"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div> <?php the_content(); ?> </div> <div class="mag_posts_meta"> <div class="meta_date"><?php the_time('j') ?> <?php the_time('F') ?> <?php the_time('Y') ?></div> <div class="meta_comments"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Yazının Devamı >></a></div> </div> </div></div></div> <?php endwhile; ?> <?php endif; ?> </div> <?php include (TEMPLATEPATH . '/rightads.php'); ?> <?php get_sidebar(); ?> <div class="clear"></div> <?php get_footer(); ?>kardes dediğini yaptım fakat olmadı yıne aynı oldu ..
ana ındex kodum bu ,page numbers eklentisini kullanıyorum..
bu kodu eklememı istiyo eklenti ekliyorum aynı ..
<?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>