Hi,
Noticed there is an option out of the box for meta on or off under “Blog” -> “Content” under customization.
I would like to display only the author instead of default category/author/date.
Referring to this post
is this the correct code I can input in child theme function php? And if so, do I leave the meta option on or off?
// Ethos Entry Meta
// =============================================================================
if ( ! function_exists( 'x_ethos_entry_meta' ) ) :
function x_ethos_entry_meta() {
//
// Author.
//
$author = sprintf( ' %1$s %2$s</span>',
__( 'by', '__x__' ),
get_the_author()
);
//
// Output.
//
if ( x_does_not_need_entry_meta() ) {
return;
} else {
printf( '<p class="p-meta">%1$s%2$s</p>',
$author
);
}
}
Thanks for your help.