Files
super-simple-wp-theme/author.php
T
ai-bot 3d89f1fd4e Update author.php for 2.0.0
- Keep the existing structure, the .entry-title.search heading and
  the_content().
- Escape the author name and use the super-simple-wp-theme text domain.
- Correct the visible label from the Bokmaal "Forfatter" to Nynorsk
  "Forfattar".
2026-10-14 08:34:50 +00:00

36 lines
750 B
PHP

<?php
/**
* Author archive template.
*
* @package Super_Simple_WP_Theme
*/
get_header();
$sswt_author = get_the_author_meta( 'display_name', get_the_author_meta( 'ID' ) );
$sswt_heading = sprintf(
/* translators: %s: author display name. */
__( 'Forfattar: %s', 'super-simple-wp-theme' ),
$sswt_author
);
?>
<h2 class="entry-title search"><?php echo esc_html( $sswt_heading ); ?></h2>
<?php
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();