Hi @kertoon
show your css code.
.entry-byline {
font-size: small;
}
@kertoon
your codes are working 😀 but you have to wrap
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>">
<?php the_author(); ?>
</a>
inside div.
Presently, my code is this:
<div class=”entry-byline”><div style=”text-align:center”>
<?php $u_time = get_the_time(‘U’);
$u_modified_time = get_the_modified_time(‘U’);
if ($u_modified_time >= $u_time + 86400) {
echo “Last updated on “;
the_modified_time(‘F jS, Y’);
echo ” “; }
else {echo ” “; the_time(‘F jS Y’);} ?>by <?php the_author_posts_link(); ?><!–<time <?php hybrid_attr( ‘entry-published’ ); ?>></time>–!></div>
<!–<?php comments_popup_link( number_format_i18n( 0 ), number_format_i18n( 1 ), ‘%’, ‘comments-link’, ” ); ?>–>
</div><!– .entry-byline –>
You don’t mind show me precisely as how I should do it.
Please bear with me, as I’m digitally-challenged.
Man Make it Simple
<div class=”entry-byline”>
<small>
By
<a href="<?php echo get_author_posts_url(get_the_author_meta('ID')); ?>">
<?php the_author(); ?>
</a>
</small>
</div>
<small> On
<?php the_time('F j, Y'); ?>
</small>
In CSS
.entry-byline{
font-color:red;
}
Just to check with you.
With your code as suggested above, the customization of displaying the Last Updated Date of my posts still work?
No You can replace this
<?php the_time('F j, Y'); ?>
with this
$u_time = get_the_time('U');
$u_modified_time = get_the_modified_time('U');
if ($u_modified_time >= $u_time + 86400) {
echo "<p>Last modified on ";
the_modified_time('F jS, Y');
echo " at ";
the_modified_time();
echo "</p> "; }
Thank you very much Naveen for your time and effort. You have a nice day.