Jump to content

Blog post bylines


Tyssen
 Share

Recommended Posts

Is there a way to output a nicely formatted author name using just the page's author without creating an additional author field attached to a template?

At the moment I'm doing:

$author = $page->createdUser;
echo $author->name;

but that just outputs admin when I'd like it to output Site Admin. But usernames can't contain spaces and there's no screen name field.

So do I need to create a field for the news template for author? Or is there some other workaround?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...