Hi!
I need to display the name of the author of an article in lastest view, below the data created of the item, and before the intro text.
I have tried to copy the code from category_item.php into lastest_item.php, but it doesn't work.
<?php if($this->item->params->get('catItemAuthor')): ?> <!-- Item Author --> <span class="catItemAuthor"> <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a> </span> <?php endif; ?>
What can i do?
Thank you very much in advance.
I need to display the name of the author of an article in lastest view, below the data created of the item, and before the intro text.
I have tried to copy the code from category_item.php into lastest_item.php, but it doesn't work.
<?php if($this->item->params->get('catItemAuthor')): ?> <!-- Item Author --> <span class="catItemAuthor"> <?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a> </span> <?php endif; ?>
What can i do?
Thank you very much in advance.