- The post title is now an <h1 class="entry-title">. The class name is unchanged. - Remove the commented out permalink markup. - Escape the author URL and translate the "Kategori:" label with the super-simple-wp-theme text domain.
30 lines
746 B
PHP
30 lines
746 B
PHP
<?php
|
|
/**
|
|
* Single post template.
|
|
*
|
|
* @package Super_Simple_WP_Theme
|
|
*/
|
|
|
|
get_header();
|
|
|
|
if ( have_posts() ) :
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<h1 class="entry-title"><?php the_title(); ?></h1>
|
|
<div class="entry-meta">
|
|
<p class="author"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php the_author(); ?></a></p>
|
|
<p class="date"><?php the_date(); ?></p>
|
|
</div>
|
|
<div class="entry-content">
|
|
<?php the_content(); ?>
|
|
<p class="categories"><?php esc_html_e( 'Kategori:', 'super-simple-wp-theme' ); ?> <?php the_category( ', ' ); ?></p>
|
|
</div>
|
|
</article>
|
|
<?php
|
|
endwhile;
|
|
endif;
|
|
|
|
get_footer();
|