PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Users name not showing up on User-Generated Posts

  1. When a user submits the form -- set up to post directly to the website -- the author is showing as "Wendy" who is the admin. Is there something on the setting of the form that will show the author? The users are entering name and email.

    http://mybelovedmug.com/submit-your-story

    Thanks~

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  2. There should be an option for that here:

    Screenshot

    That assumes they are registered users on your WP site.

    If not, then you'd need to place their info in the post body using the merge tags of the fields you want displayed.

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  3. Hmm..that was what it was set at...Do I need to put something in the post body (merge)? Tried adding first name, and nothing. Tried {user:display_name} -- and still coming up with Wendy. Wendy is default so that's what I would expect...

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  4. In your Theme, the PHP used to create the posts has this engrained in the file, which will show the Author as someone with access to the WP site. If you don't want that to show, simply remove that from your WP Theme's Post file and then just use your Post Body to display the form content instead.

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  5. What am I looking for to remove exactly?

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  6. Every theme is different, but something like: <?php $author = get_the_author(); ?>

    http://codex.wordpress.org/Function_Reference/get_the_author

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  7. Well, I have Genesis -- and the child theme inherits templates from a parent theme. THere is nothing in any of the files per above. No reference to "get author" -- only mention of changing gravatar for author box.

    Seems like user-generated content should pick up that author on these forms. Not sure what next steps. Ideas?

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  8. WP can't assume that everyone who fills a form out on your site is tied to a user profile in your WP setup. That's how posts are generated, through roles of WP. That's why it's defaulting to your Admin. Someone has to be accountable for it, so if you want the users info to show there, then you will need to have them register on your site first. Have you tried reaching out to the theme-maker for help in how you can remove that information specifically from the post detail page? You could always hide it via CSS too:

    [css]
    .author.vcard {
    display: none;
    }
    Posted 12 years ago on Monday April 23, 2012 | Permalink
  9. Thanks! Will do.

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  10. Okay I was able to hide via CSS but what do I use to display the author of the post? Or what will merge do? I tried adding the merge {Name (First):1.3} and it is not showing up anywhere. Is it something else I have to merge to post body?

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  11. You place that as part of your Post Body content and as long as that field has been filled out it will show in the body of the post. This will be for posts going forward, not for posts that have already been submitted. You'd need to edit the already-published posts to add in that content.

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  12. Thanks. Made all updates, added new post but is still not showing up with any author...

    See http://mybelovedmug.com/janes-mug -- changed CSS. Removed "used logged in as author" and added the merge above and it just shoes name ..." JANE." That is not going to work. Is that how it should appear?

    The point of user-generated content would be to be able to display WHO posted it. Seems like there are a lot of workarounds here or I'm missing something.

    Posted 12 years ago on Monday April 23, 2012 | Permalink
  13. Right, it is working. You could put in your Post Body - This post submitted by: "Jane" (in this case). The content there is all how you want it to appear in both terms of context and styling. You can use HTML and apply classes, etc.

    If you want it more dynamic, like WP does on regular posts, you will need your posters to join your site as users as I stated above prior to being able to submit a post.

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  14. Thanks so much for your help! Have a great Tuesday!

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink
  15. No problem - have a good one yourself!

    Posted 12 years ago on Tuesday April 24, 2012 | Permalink

This topic has been resolved and has been closed to new replies.