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.

User Created Post

  1. Currently I am forced to either selected a user name or have the poster register and log in.
    I would like not to have to do any. I would like any poster to have their name assigned to the post as if they were logged in. I am trying to replace TDO Mini Forms which did this automaticaly.

    Posted 12 years ago on Monday January 23, 2012 | Permalink
  2. It's possible to do this with Gravity Forms, however it does not currently automatically do this for you. But it is possible as a minor customization.

    TDO Mini Forms does not really set the post author to the name used in the form to create the post. It creates the post using a default author you configure in the TDO Mini Forms settings. There is then another setting in TDO Mini Forms to "Use submitter info for author in your theme" and that is what you are referring to.

    So what TDO does is it creates the post using the default author you selected in the settings, and then if you enable the other option it manipulates your theme itself to replace the authors name with a name stored as part of the post meta for the post that is created. It's a hack. In the database and in the WordPress Dashboard they aren't the author, TDO manipulates your theme to change how the post author function output works and change it's value.

    We do not currently do this as a built in feature, however it's certainly possible to do this as a customization using Gravity Forms.

    What it would involve is...

    - Use Post Custom Field for Name Field and set the custom field name to something like author_name

    - Use WordPress hooks to filter the function normally used to output the authors name of the post which is the_author so that if the post has post meta with the custom field name author_name it outputs that value instead of the real author as the output of that function.

    We can look at introducing this as a native feature, however we have been hesitant to implement features that filter and manipulate WordPress core functionality like this.

    Posted 12 years ago on Friday February 3, 2012 | Permalink

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