Hello,
I have a very fast question. I have a similar thing as here - How to leave only name a date on blog post. But I would like to show only the date.
Shall I in this case use this code: ```
// Custom Ethos Entry Meta
// =============================================================================
if ( ! function_exists( 'x_ethos_entry_meta' ) ) :
function x_ethos_entry_meta() {
//
// Date.
//
$date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
//
// Output.
//
if ( x_does_not_need_entry_meta() ) {
return;
} else {
printf( '<p class="p-meta">%1$s</p>',
$date
);
}
}
endif;
Please let me know.
Best regards,
Damira Teppo