SyntaxFix
Write A Post
Hire A Developer
Questions
If you want it outside of loop then use the below code.
<?php $author_id = get_post_field ('post_author', $cause_id); $display_name = get_the_author_meta( 'display_name' , $author_id ); echo $display_name; ?>