Adding Date to Blog Posts Within WP Theme
-
My website was custom built by a developer who has coded our theme to show the author of the blog post, but not the date to accompany it (https://www.exchangecapital.com/wealthy-street-blog/). I’m looking for help on generating a small bit of code to include this information on the posts, and where to put it. This is the information is in my author.php file:
<div class=”content”>
<?php if(have_posts()) : ?>
<?php
if(isset($_GET[‘author_name’])) :
$curauth = get_userdatabylogin($author_name);
else :
$curauth = get_userdata(intval($author));
endif;
?>
<h2><?php _e(‘Posts by’,’exchangecapital’); ?>: <?php echo $curauth->nickname; ?></h2>
<?php if($data[‘disable_breadcrumbs’] !=’disable’) { exchangecapital_breadcrumbs(); } ?>This seems to make the most sense as to where any changes should go–but I’m clearly not a developer, so this could be inaccurate. Any advice would be appreciated–thank you!
The topic ‘Adding Date to Blog Posts Within WP Theme’ is closed to new replies.