Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15761

    how do i add “written by (author)” to blog post below title and above content? currently there is no author info included.

    #88897

    Hi,

    Open includes > loop-index.php and find this code.

    /*
    echo '<span class="blog-author minor-meta">'.__('by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep author-sep">/</span>';

    echo '<span class="blog-permalink minor-meta">';
    echo "<a href='".get_permalink()."'>".__('#permalink','avia_framework')."</a>";
    echo '</span>';
    */

    Replace it with this.

    echo '<span class="blog-author minor-meta">'.__('written by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep author-sep">/</span>';

    Regards,

    Ismael

    #88898

    i made this change and it did not work correctly. i need the “written by” below title and above content live a traditional wordpress blog. right now it’s at the bottom of the post.

    site is here: www. ocean vistas daytona .com

    #88899

    Hi,

    What you’ll want to do is move the code above this line:

    // echo the post content
    echo $content;

    Regards,

    Mya

    #88900

    the author info now runs together with the content. i need a break. the author info needs to be between the title and content. right now there is a title, author below title, but the content starts next to the author instead of the line breaking and content starting below author.

    please help.

    #88901

    Hi klingerrr1,

    You can add two break tags at the end of the code Ismael gave you. Like this:

    echo '<span class="blog-author minor-meta">'.__('written by ','avia_framework');
    the_author_posts_link();
    echo '</span><span class="text-sep author-sep">/</span><br /><br />';

    Regards,

    Mya

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘how to add author to top of posts below title?’ is closed to new replies.