Answer the question
In order to leave comments, you need to log in
How to display a variable in the right place?
The following code displays the date the post was modified, a date icon ( ) and more.<span class="posted-on">
function awaken_posted_on() {
$abc = the_modified_date();
//$time_string = awaken_posted_datetime();
$posted_on = $time_string ;
$byline = '<span class="author vcard">' . esc_html( get_the_author() ) .'</span>';
echo '<span class="posted-on">' . '</span><span class="byline">' . $byline . '</span>';
}
echo '<span class="posted-on">'. $abc . '</span><span class="byline">' . $byline . '</span>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question