• Resolved oscarbugaric

    (@oscarbugaric)


    Hello! I have a website where users can post from front-end.
    Iā€™m using User Submitted Posts plugin for that.

    I got the user to post without registering but I need to approve of the post. So when I do, I end up submitting the post and I appear as the author (admin) instead of the user who submitted the post.

    When I look at the posts in WP dashboard, the author names really are the ones that the user posts, but on the front end its always me who is the author(admin). here is a screenshot:?https://imgur.com/a/FXFeyqn

    Any idea how to fix this? Thank you very much.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter oscarbugaric

    (@oscarbugaric)

    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.

    Plugin Author Jeff Starr

    (@specialk)

    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 10 months, 1 week ago by Jeff Starr.
    Thread Starter oscarbugaric

    (@oscarbugaric)

    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.

    Plugin Author Jeff Starr

    (@specialk)

    Ok I will take a closer look next opportunity. Thanks for the update.

    Plugin Author Jeff Starr

    (@specialk)

    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:

    1. Install this plugin
    2. Install other plugin
    3. Visit such and such page
    4. Perform some action, etc.
    5. Until the issue appears/happens

    That will enable me to follow along and try to resolve any issue asap, thank you.

    Plugin Author Jeff Starr

    (@specialk)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘User submitted posts ā€“ Author name’ is closed to new replies.