Jump to content
Sign in to follow this  
kswaters

Post by Author is blank

Recommended Posts

kswaters

Hi all, hoping this is a real easy question... When I click on the author name below a post headline, it goes to a page that lists all posts by that author, which is great. At the top of the page, it says "Posts by author: " but then it doesn't display the author name. How could I put that right? Kelly.

Share this post


Link to post
Share on other sites
cmunns

For each user/author...go to WP Users and edit your profile. Make sure that all the info is filled out, specifically the "display name"

Share this post


Link to post
Share on other sites
kswaters

Hi Adam - I checked that and even when all name fields are present, the template still doesn't show the name. However the author name is shown in the metabar under the headline, just not when you click through. Take a look at www.allaboutagile.com... Kelly.

Share this post


Link to post
Share on other sites
catrina

Check the section.postsinfo.php file for this: ` <?php if (is_author()) { $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); _e('Posts by:', 'pagelines'); ?> <?php echo $curauth->display_name; ?> ` ...Is it there?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
kswaters

Hi Catrina, I don't seem to have that file... Kelly.

Share this post


Link to post
Share on other sites
catrina

That might be part of the problem. It should've been located in platformpro > core > library.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
kswaters

Nope, definitely not in there. Any chance you can send me what should be in it? Kelly.

Share this post


Link to post
Share on other sites
Andrew

Hey there Kelly, So can you work with us to get this bug fixed? The file we need to edit is 'section.postsinfo.php' inside your sections folder. This is the code: ` <?php if (is_author()) { $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author')); _e('Posts by:', 'pagelines'); ?> <?php echo $curauth->display_name; ?> <?php } ` It works on our testing server, but not on yours... are you able to play with it until it works? We will patch accordingly...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×