Home › Forums › Back End › Display author etc. in front page › Reply To: Display author etc. in front page
January 5, 2015 at 1:23 pm
#192297
Participant
Display author etc. in front page
Front page as in Home Page? Page Template? Read over WordPress Template Hierarchy and make sure you’re editing the right template.
List of Template Tags that you can use. And here’s a sample code.
<?php
$post_author = get_the_author();
$post_date = get_the_date();
echo '<p>Published on: '.$post_date.' by '.$post_author.'</p>';
?>
or (both produce same results)
<p>Published on: <?php the_date(); ?> by <?php the_author(); ?></p>
Hope that helps,
-Alen