Update single.php for 2.0.0

- 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.
This commit is contained in:
ai-bot committed 2026-10-14 08:34:28 +00:00
1 parent 8da0fd652f
commit 525d9362a9
1 file changed
+29 -26
+29 -26
View File
@@ -1,26 +1,29 @@
<?php <?php
/**
get_header(); * Single post template.
*
if (have_posts()) : * @package Super_Simple_WP_Theme
while (have_posts()) : the_post(); */
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> get_header();
<h2 class="entry-title"><!--<a href="<?php the_permalink(); ?>">--><?php the_title(); ?><!--</a>--></h2>
<div class="entry-meta"> if ( have_posts() ) :
<p class="author"><a href="<?php echo get_author_posts_url(get_the_author_meta("ID")); ?>"><?php the_author(); ?></a></p> while ( have_posts() ) :
<p class="date"><?php the_date(); ?></p> the_post();
</div> ?>
<div class="entry-content"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_content(); ?> <h1 class="entry-title"><?php the_title(); ?></h1>
<p class="categories">Kategori: <?php the_category(", "); ?></p> <div class="entry-meta">
</div> <p class="author"><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>"><?php the_author(); ?></a></p>
</article> <p class="date"><?php the_date(); ?></p>
<?php </div>
<div class="entry-content">
endwhile; <?php the_content(); ?>
endif; <p class="categories"><?php esc_html_e( 'Kategori:', 'super-simple-wp-theme' ); ?> <?php the_category( ', ' ); ?></p>
</div>
get_footer(); </article>
<?php
?> endwhile;
endif;
get_footer();