Arkadaşlar merhaba.
Sitelerimin bir tanesinde garip bir durumla karşı karşıyayım.
Kategori sayfalarında yalnızca o kategoriye ait yazılar değil, tüm kategorilerin yazıları görüntüleniyor.
Yalnızca tek bir kategoride değil, tüm kategorilerde durum böyle.
Çözüm konusunda ise; en ufak bir fikrim yok. Yol gösterebilecek olan var mı acaba?
Not: Cache eklentisini pasif hale getirince sorunum çözüldü. Kategoriler subdomain olarak kurulu.
Wordpress Sitemin Kategoriler Sayfasındaki Gariplik
7
●176
- 23-11-2016, 00:00:09themes/theme-adi/archive.php 'de yaptığın bir değişiklik bu soruna sebep olabilir. Kodlamaya bakmadan birşeyler söylenmesi çokta mümkün değil. PHP kodlarınla beraber yardım itersen; yardımcı olacak arkadaşa, sende çözümde yardımcı olursun. Kolay gelsin.
- 23-11-2016, 00:02:59Aklıma gelmişti kodları koymak ama hangi bölümü koymam gerektiğini bilemediğim koyamamıştım. Şöyle, kodları ekleyeyim.PaintYazilim adlı üyeden alıntı: mesajı görüntüle
"
<?php $options = get_option('justblue'); ?> <?php get_header(); ?> <div id="page"> <div class="content"> <article class="article"> <div id="content_box"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post excerpt <?php echo (++$j % 2 == 0) ? 'last' : ''; ?>"> <header> <h2 class="title"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <?php if($options['mts_headline_meta'] == '1') { ?> <div class="post-info"> <?php _e('Posted in ','mythemeshop'); the_category(', ') ?><?php _e(' by ','mythemeshop'); the_author_posts_link(); ?> <?php _e(' On ','mythemeshop'); the_time('F j, Y'); ?> </div> <?php } ?> </header><!--.header--> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="nofollow" id="featured-thumbnail"> <?php if ( has_post_thumbnail() ) { ?> <?php echo '<div class="featured-thumbnail">'; the_post_thumbnail( 'thumbnail', array('title' => '')); echo '</div>'; ?> <?php } else { ?> <div class="featured-thumbnail"> <img width="150px" height="150px" src="<?php echo get_template_directory_uri(); ?>/images/nothumb.png" class="attachment-featured wp-post-image" alt="<?php the_title(); ?>"> </div> <?php } ?> </a> <div class="post-container"> <div class="post-content image-caption-format-1"> <?php echo excerpt(43);?> <p class="readMore"><a href="<?php the_permalink() ?>" rel="nofollow"><?php _e('Read More','mythemeshop'); ?></a></p> </div> </div> </div><!--.post excerpt--> <?php endwhile; else: ?> <div class="post excerpt"> <div class="no-results"> <p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p> <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p> <?php get_search_form(); ?> </div><!--noResults--> </div> <?php endif; ?> <?php if ($options['mts_pagenavigation'] == '1') { ?> <?php pagination($additional_loop->max_num_pages);?> <?php } else { ?> <div class="pnavigation2"> <div class="nav-previous"><?php next_posts_link( __( '← '.'Older posts', 'mythemeshop' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' →', 'mythemeshop' ) ); ?></div> </div> <?php } ?> </div> </article> <?php get_sidebar(); ?> <?php get_footer(); ?> - 23-11-2016, 09:49:12Pek birşey gözükmüyor. wp_reset_query(); ile sorun düzelecek gibi gözüküyor. Aşağıda derlenmiş hali mevcut. Kolay gelsin.Moonweb adlı üyeden alıntı: mesajı görüntüle
<?php $options = get_option('justblue'); ?> <?php get_header(); ?> <div id="page"> <div class="content"> <article class="article"> <div id="content_box"> <?php wp_reset_query(); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post excerpt <?php echo (++$j % 2 == 0) ? 'last' : ''; ?>"> <header> <h2 class="title"> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <?php if($options['mts_headline_meta'] == '1') { ?> <div class="post-info"> <?php _e('Posted in ','mythemeshop'); the_category(', ') ?><?php _e(' by ','mythemeshop'); the_author_posts_link(); ?> <?php _e(' On ','mythemeshop'); the_time('F j, Y'); ?> </div> <?php } ?> </header><!--.header--> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="nofollow" id="featured-thumbnail"> <?php if ( has_post_thumbnail() ) { ?> <?php echo '<div class="featured-thumbnail">'; the_post_thumbnail( 'thumbnail', array('title' => '')); echo '</div>'; ?> <?php } else { ?> <div class="featured-thumbnail"> <img width="150px" height="150px" src="<?php echo get_template_directory_uri(); ?>/images/nothumb.png" class="attachment-featured wp-post-image" alt="<?php the_title(); ?>"> </div> <?php } ?> </a> <div class="post-container"> <div class="post-content image-caption-format-1"> <?php echo excerpt(43);?> <p class="readMore"><a href="<?php the_permalink() ?>" rel="nofollow"><?php _e('Read More','mythemeshop'); ?></a></p> </div> </div> </div><!--.post excerpt--> <?php endwhile; else: ?> <div class="post excerpt"> <div class="no-results"> <p><strong><?php _e('There has been an error.', 'mythemeshop'); ?></strong></p> <p><?php _e('We apologize for any inconvenience, please hit back on your browser or use the search form below.', 'mythemeshop'); ?></p> <?php get_search_form(); ?> </div><!--noResults--> </div> <?php endif; ?> <?php if ($options['mts_pagenavigation'] == '1') { ?> <?php pagination($additional_loop->max_num_pages);?> <?php } else { ?> <div class="pnavigation2"> <div class="nav-previous"><?php next_posts_link( __( '← '.'Older posts', 'mythemeshop' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts'.' →', 'mythemeshop' ) ); ?></div> </div> <?php } ?> </div> </article> <?php get_sidebar(); ?> <?php get_footer(); ?> - 23-11-2016, 10:26:34Çok teşekkür ederim ilginize ama ne yazık ki sorun çözülmedi.PaintYazilim adlı üyeden alıntı: mesajı görüntüle
Cache aktif edildiğinde aynı sorun devam ediyor, kapatınca sorun yok. - 23-11-2016, 10:36:21Farklı bir cache eklentisi denediniz mi?Moonweb adlı üyeden alıntı: mesajı görüntüle
- 23-11-2016, 10:44:25Hayır denemedim, yalnızca wp-fastest denemedim tüm sitelerimde onu kullandığım için.PaintYazilim adlı üyeden alıntı: mesajı görüntüle
Diğer cache eklentileri bu zamana kadar hep bana problem çıkardığı için uzak duruyorum. En kötü cache kullanmadan bırakacağım siteyi bir süre artık. - 23-11-2016, 10:51:31Önemli bi husus daha var. Sayfada değişiklik yaptıktan sonra cache'leri temizlediniz mi? Sonuçta cache eklentisi aktif edildiğinde daha önce render edilmiş html kodlarını tekrar getirir. Ki sizinde bildiğiniz gibi cache'in mantığı da budur. Cache eklentisinden "Delete Cache" i bi dener misiniz.