Files
super-simple-wp-theme/category.php
T

25 lines
529 B
PHP

<?php
get_header();
printf(
'<h2 class="entry-title search">%s</h2>',
esc_html(sprintf(__("Kategori: %s", "super-simple-wp-theme"), get_queried_object()->name))
);
if (have_posts()) :
while (have_posts()) : the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="entry-content">
<?php the_content(); ?>
</div>
</article>
<?php
endwhile;
endif;
get_footer();