search form
4
●267
- 05-03-2014, 19:34:01Kimlik doğrulama veya yönetimden onay bekliyor.meraba arkadaşlar benim 404.php sayfam mevcut ve istediğim şekilde yapılandırdım mesela r10.net/çalışmayan-bir-url şeklinde url olarak girdiğimde eğer içerik yoksa 404.php sayfasına yönleniyor lakin arama yaptığım zaman eğer aramaya uygun sonuç yoksa boş bir sayfa çıkıyor bu boş sayfayı nasıl 404.php sayfasına çevirebilirim veya yönlendirebilirim ?
- 05-03-2014, 20:33:21klasik bi' search.php veriyorum aşağı da, temanıza göre düzenlerseniz sorun çözülecektir.
<?php get_header(); ?> <div class="sol"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?> <div class="kat"><?php the_category(', ') ?></div> <div class="okunma"><?php if(function_exists('the_views')) { the_views(); } ?></div> <div class="yorum"><?php comments_number('Yorum Yok', '1 Yorum ', '% Yorum' );?></div> <div class="devam"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">Devamını Oku</a></div> <?php comments_template(); ?> <?php endwhile; else: ?> <p><?php _e('Uzgunum,aradiginiz yazi yok veya tasinmis.'); ?></p> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> - 05-03-2014, 22:39:30Temanızda archive.php veya category.php dosyanız varsa kopyalayın ve onu search.php diye kaydedin.