Çok özel değilse archive.php kodunu paylaşırmısınız?
Tabi
<?php
/**
* archive.php
* @version v.1.1
* @since 10/10/18
*/
get_header();
?>
<div id="main" class="site-main page-archive" role="main">
<header class="page-header">
<h3 class="page-title archive-title">
<?php
if ( is_category() ) :
single_cat_title();
elseif ( is_tax('genre') ) :
echo 'Genre : '; single_tag_title();
elseif ( is_tag() ) :
single_tag_title();
elseif ( is_author() ) :
printf( __( 'Author: %s' ), '<span class="vcard">' . get_the_author() . '</span>' );
elseif ( is_day() ) :
printf( __( 'Day: %s' ), '<span>' . get_the_date() . '</span>' );
elseif ( is_month() ) :
printf( __( 'Month: %s' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format' ) ) . '</span>' );
elseif ( is_year() ) :
printf( __( 'Year: %s' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format' ) ) . '</span>' );
else :
_e( 'Archives' );
endif;
?>
</h3>
</header>
<?php
if (have_posts()) :
while(have_posts()) : the_post();
if(get_post_type(get_the_ID()) == "post" or is_tax('genre')){
get_template_part('content');
}
endwhile;
else :
get_template_part( 'content', 'none' );
endif;
?>
<?php
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __('Prev'),
'next_text' => __('Next'),
'screen_reader_text' => '',
));
?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>