Hello,
I wish the end of each post had an area informing the author.
How do?
Hey leomiranda92!
Edit includes > loop-index.php, find this code on line 173:
echo $content;
Below, add this code:
`$description = get_the_author_meta(‘description’, $author_id);
echo “<div class=’author_description_text'” .avia_markup_helper(array(‘context’ => ‘description’,’echo’=>false)).”>”.wpautop($description).”</div><span class=’author-extra-border’></span></div>”;`
Regards,
Ismael
Look the error:
Parse error: syntax error, unexpected T_CLASS, expecting ‘,’ or ‘;’ in /home/euque835/public_html/mariliadario.com.br/wp-content/themes/enfold/includes/loop-index.php on line 176
Now, the code:
echo $content;
$description = get_the_author_meta(‘description’, $author_id);
echo “<div class=’author_description_text’” .avia_markup_helper(array(‘context’ => ‘description’,'echo’=>false)).”>”.wpautop($description).”</div><span class=’author-extra-border’></span></div>”;
echo '</div>';
Hi!
I think Ismaels code is messed up (wrong quotes because bbpress converted them). Please try following code
$description = get_the_author_meta('description', $author_id);
echo "<div class='author_description_text'>".wpautop($description)."</div><span class='author-extra-border'></span></div>";
Best regards,
Peter