By Kenneth Koppervik on Friday, 12 December 2014
Posted in General
Likes 0
Views 687
Votes 0
Im in the mod_latestblogs/default_item and need to do something like this:
<span class="blog-author">
<?php echo JText::_( 'COM_EASYBLOG_BY' );?>
<a href="<?php echo $row->blogger->getProfileLink(); ?>" itemprop="author"><?php echo $row->blogger->getName(); ?></a>
</span>

But that wont work? Ho can I get the name of the author with php?
Hello Kenneth,

Please use this instead.

$post->author->getName();


Hope this helps.
·
Friday, 12 December 2014 17:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik,

That worked! Thanks

Solution:
<span class="blog-author">
<?php echo JText::_( 'COM_EASYBLOG_BY' );?>
<?php echo $post->author->getName(); ?>
</span>
·
Friday, 12 December 2014 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kenneth,

You're welcome.
·
Friday, 12 December 2014 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post