I forgot to mention, I am using GeneratePress, and this is what GP support said:
Hi there,
the Theme uses the core get_the_author function to return the author name and the archive link if it exists.
So can you ask the plugin developer what exactly needs to be done differently to display the actual author that their plugin is saving? as the Theme isn’t going to know that.
Themes can use a variety of different tags to display the author name. I wrote about it here for the pro version, but the information applies to the free version as well. It shows that get_the_author is supported but there could be some other factor(s) involved. You might try switching themes a few times to see if the name displays correctly in other cases.
-
This reply was modified 2 years, 4 months ago by
Jeff Starr.
Answer from the GeneratePress support:
OK, i think the plugin developer needs to take a look at the issue.
The Theme and GB uses core functions to return the author name which uses: get_the_author
And this snippet here uses the get_the_author_meta('display_name')
Both are functions that the plugin developer said should work.
And neither GP or GB interferes with those functions.
So unless another code is interfering with the result then there should be no reason it does not work.
Ask the developer to take a closer look, or ask them where is the submitted author stored, eg. in the post meta, as it may be easier to display that.
Ok I will take a closer look next opportunity. Thanks for the update.
Hey @oscarbugaric, I am looking into this for the upcoming plugin update. Not able to repeat so far. Can you let me know the basic steps to replicate the issue on default WordPress? Something like this would be very useful:
- Install this plugin
- Install other plugin
- Visit such and such page
- Perform some action, etc.
- Until the issue appears/happens
That will enable me to follow along and try to resolve any issue asap, thank you.
Hey @oscarbugaric, I hope you got this sorted. It’s been a while with no reply so gonna go ahead and mark this thread as resolved to help keep the forum organized. Feel free to post again with any further questions or feedback, Thank you.