How to Show the Assigned Author of a post
Posts are by default assigned to the creator - the author who is logged in when they are created. Sometimes you may wish to change this either at editing time or subsequently. This hack can be used to change the displayed author of a post by just changing the assigned author in the post editing form.
If no author is assigned, display the creator of the article.
Show the Prefered Name (Identity Shown) with a link to all the articles of that person
And once you did that, you want the messageform-link to go to the right user, right ?
If you just want to show the assigned author name (not any lists of links or message form) this code will do it:
You should insert this code into your active _main.php file (the one in whichever template you are using) in the section called ‘—START OF POSTS—’. It should ‘’replace'’ the lines that read something like:
- You will need to remove the surrounding <?php … ?> tags if you are inserting it into an existing php statement.
Created by • Last edit by on Jul 15, 2013