Webmaster ve Yazılım Geliştiriciler
Wordpress Temada Kategori Sayfalarına Blog Yazılarının Gelmemesi Sıkıntısı
Wordpress Temada Kategori Sayfalarına Blog Yazılarının Gelmemesi Sıkıntısı
-
Merhaba müridler şimdi kullandığım temada category.php diye bir sayfa yok onu baştan bi söyliyim. ben kendim oluşturdum içinide düzeltmeye çalışıyorum şuanda.
kısacası sıkıntım şu admin panelinden kategoriyi koydum menüye ancak menüye tıkladığımda kategoriye koyduğum yazı gelmiyor. (menü olarak temanın kendi menüsüne ekledim)
Acaba category.php oluşturup get_post vs gibi fonksiyonları dizmemmi lazım. Nasıl çözerim bu olayı müridler ?
-
bi küçük upçuk.
-
samato bunu yazdı
bi küçük upçuk.
Temanın düzgününü bulsana olum :D
-
kullandığın temayı bi upload ette bakalım şimdi ne desek boş :/
-
cat.php oluşturup içine ne yazdın?
-
@sRcN hocam tema bu http://gfxzone.net/wordpress/download-right-now-v1-4-0-wp-full-video-image-with-audio-themeforest.html
@1234567B hocam
<?php /** * The template for displaying Category pages * * @link https://codex.wordpress.org/Template_Hierarchy * * @package WordPress * @subpackage Twenty_Fourteen * @since Twenty Fourteen 1.0 */ get_header(); ?> if(@$_GET['info']=='description'){ echo $pageDescription; exit; }elseif(@$_GET['info']=='title'){ wp_title( '|', true, 'right' ); exit; }elseif(@$_GET['info']=='page'){ if(have_posts()) { have_posts(); the_post(); $postID = get_the_ID(); $content = get_the_content(); $content = apply_filters('the_content', $content); $title = get_the_title(); } ?> <h1 class="caption"><?php echo $pageTitle; ?></h1> <?php echo $content; wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); }else{ redirectWithEscapeFragment(); } <section id="primary" class="content-area"> <div id="content" class="site-content" role="main"> <?php if ( have_posts() ) : ?> <?php // Start the Loop. while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); endwhile; // Previous/next page navigation. rightnow_paging_nav(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?> </div><!-- #content --> </section><!-- #primary --> <?php get_sidebar( 'content' ); get_sidebar(); get_footer(); ?>
eklediğim kodlar bunlar.