Quantcast
Channel: WordPress.org Forums » [User Submitted Posts – Enable Users to Submit Posts from the Front End] Recent Activity
Viewing all articles
Browse latest Browse all 71

Is there a way to fix submitted author names in the TTF theme?

$
0
0

Replies: 5

Hi, so this is a topic that’s been brought up a few times before (like here: https://wordpress.org/support/topic/submitted-author-name-shown-instead-of-assigned-author-name/), and while the author has made it clear what causes the issue I couldn’t find any possible solutions.

I know you’re supposed to somehow edit the get_the_author_meta() function, but I’m not sure what exactly needs to change for the submitted name to be displayed instead of the user name?

It seems that a plugin named Advanced Post Block displays it properly, by using this line:

get_the_author_meta( 'display_name', $post->post_author )

Not sure if that’s somehow related?

Just looking for a way to edit the theme so that these names will display properly in the post list. If there’s a solution I’d really appreciate it!

I’m using the Twenty-Twenty-Four theme.


Viewing all articles
Browse latest Browse all 71

Trending Articles