Query author name – the Geek-ie way
-
Could someone please kindly advise where I should put this beautiful code?
I tried before the Loop, as such:
<div id=”maincontainer”>
[p class=”breadcrumb”> All Titles By:
<?php
global $wp_query;
$author = $wp_query->get_queried_object();
echo $author->first_name . ' ' . $author->last_name;
?>
[/p]
</div>I couldn’t get it output the author name.
Have I missed an important piece of code somewhere?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Query author name – the Geek-ie way’ is closed to new replies.