how do i add "written by (author)" to blog post below title and above content? currently there is no author info included.
how to add author to top of posts below title?
6 posts from 3 voices-
Posted 9 months ago #
-
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,
IsmaelPosted 9 months ago # -
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
Posted 9 months ago # -
Hi,
What you'll want to do is move the code above this line:
// echo the post content echo $content;Regards,
MyaPosted 9 months ago # -
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.
Posted 9 months ago # -
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,
MyaPosted 9 months ago #
Reply
You must log in to post.














