Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #211566

    Hello,

    I wish the end of each post had an area informing the author.

    How do?

    #211661

    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

    #211944

    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>';
    
    #212969

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Show Author Information in post’ is closed to new replies.