Ahmed Kamara
asked 11 years ago

It’s been fantastic here you guys are now responding

How can I add the Author name and link just after the category name on top of post title in post pages? Please help, thanks

1 Answers
DominicStaff
answered 11 years ago

Hi !

You can copy the following code and paste in the file content-single.php / line 13

see the screenshot : http://imgur.com/6WfhPui

 

<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><span>by <?php the_author_posts_link(); ?> </span>

</a>

Next : log in to dashboard > theme > Customize > add the following code :

see the screenshot: http://imgur.com/ScuB1nJ

 

<style>

.single .entry-title {

margin-bottom: 0px;

}

.single .site-content > .post .entry-meta {

padding-top: 15px;

}

.entry-header a span {

font-size : 17px;

color: #999;

}

</style>

Hope this helps!

Regards,

Dominic

TELL Communications Limited
replied 10 years ago

You solution worked.

I have one more detail … what about a situation in which we have more than one Author for a particular article.

The current Bulk Edit does not allow me to add more than one Author, so how can one go about listing more than one Author per article.

Regards

Jackie Lord
replied 10 years ago

On WordPress, I think they only allow 1 author per post.

Powered by DW Question & Answer Pro