Files
super-simple-wp-theme/author.php
T
2026-10-14 07:49:14 +00:00

25 lines
584 B
PHP

<?php
get_header();
$author = get_the_author_meta("display_name", get_the_author_meta("ID"));
printf("<h2 class=\"entry-title search\">" . __("Forfatter: ", "textdomain") . $author . "</h2>\n");
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();
?>