Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

Set Registered User as Post Author

Last updated March 1, 2021 | Written by David Smith 14 Comments

Here’s a little story and a little tip. I was recently speaking with a friend (yes, wizards do have friends) and he was sharing some of the requirements for a site he was working on.

This site needed to have a form that would allow users to submit posts (aka content) to the site, register the user and then make sure the newly registered user was properly attributed as the author of the submitted post.

He was estimating that it would take about 8 – 10 hours to build such functionality. I was very happy to point him to Gravity Forms. He was ecstatic! It took him 30 minutes from start to finish to install and configure his form with Gravity Forms plus the User Registration Add-on! The only piece he was a little confused by was how to set the registered user as the post’s author.

Easy enough! After you’ve added at least one Post field to your form, a new option to “Set as Post Author” will appear on the User Registration feed settings for that form. Check “Enable” and the registered user will automatically be set as the author of the created post.

User Registration Feed Setting: Set User as Post Author

Did this resource help you do something awesome with Gravity Forms? Then you'll absolutely love Gravity Perks; a suite of 41+ essential add-ons for Gravity Forms with support you can count on.

  • View All Perks
  • Buy Gravity Perks

Filed Under: Tutorials feature post creation user registration

Comments

  1. Bakhtawar says

    June 16, 2017 at 5:29 am

    Hey David, I followed above steps but it’s not working for me.

    Reply
    • David Smith says

      June 20, 2017 at 9:06 am

      Hi Bakhtawar, this tutorial demonstrates default Gravity Forms functionality. I’d recommend reaching out to the Gravity Forms support team if you’re having any issues.

      http://gravityhelp.com/support/

  2. Jiten says

    August 17, 2016 at 7:31 am

    Hello Wiz,

    Its really helpful for me. But I’m finding a thing now a days that can we use a name from submit form and show that name where author details are displaying in GF I saw only two options that “Default Post Author” and “Use logged in user as author” but If my blogger not registered than how can I show his details or name from submit form?

    ~Jiten

    Reply
    • David Smith says

      August 17, 2016 at 8:26 am

      Hi Jiten, there are two solutions.

      1 – You can use the GF User Registration add-on and register the user as an author when they submit their post. 2 – You can store the user’s name in a Custom Field and modify your theme to output the author’s name if found and if not, output the custom field value.

    • Jiten says

      August 17, 2016 at 8:39 am

      Thank You David. I’ll try it :)

  3. Daniel Gutiérrez says

    July 6, 2016 at 3:07 pm

    Thx David, this tip saved me a lot of time.

    Reply
    • David Smith says

      July 6, 2016 at 4:30 pm

      Glad to help! :)

  4. Chris says

    May 7, 2014 at 11:32 am

    David – Would love to know what your response was to Tommy’s question:

    Thanks David! It turns out that my biggest source of confusion was how to allow a registered user to log into WordPress, without actually giving him access to the wp dashboard. It looks like I need to use something like the Members plugin to restrict access (unless you know of a better way solution).
    Reply
    • David Smith says

      May 8, 2014 at 2:09 pm

      Hi Chris, I sent him this: http://wordpress.org/extend/plugins/wp-hide-dashboard/ Hope it works for you as well. :)

  5. Tommy Oddo says

    September 13, 2012 at 9:05 am

    Thanks David! It turns out that my biggest source of confusion was how to allow a registered user to log into WordPress, without actually giving him access to the wp dashboard. It looks like I need to use something like the Members plugin to restrict access (unless you know of a better way solution).

    Reply
  6. Tommy Oddo says

    September 12, 2012 at 9:34 pm

    Thanks David– your posts are very helpful, and especially this one. However, the challenge I now have is that registered users who attempt to submit a new post, can’t. They get an error message: “This username is already registered.” Is there a way to prevent this from happening?

    Reply
    • David Smith says

      September 13, 2012 at 6:47 am

      Hi Tommy, give this a shot:

      https://gravitywiz.com/2012/04/24/skip-user-registration-for-logged-in-users/

  7. Andrew Wetzel (@CircleReader) says

    May 19, 2012 at 10:31 am

    Hey, Wiz! Just found your site via @carlhancock, and am looking forward to keeping up with your tips! (I’ll be using this one as I rebuild my own site – thanks!)

    (Just a note on the site:  the excerpt for this post reads, in part, “This site needed to have a form that would to the site, register the user and then…” Looks like the link was stripped…)

    Reply
    • David Smith says

      May 19, 2012 at 12:41 pm

      Thanks for pointing that out Andrew. Hope you find the site to be very useful! If you have any suggestions for improvement and or ideas for snippets please do let me know. :)

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.

Recent Posts

  • Spotlight: Gravity Forms Media Library 🤝 Advanced Custom Fields
  • How ANM Powers Internal Finances with GP Unique ID
  • New Release: Gravity Forms QR Code Beta 1
  • How Farbie.at uses GP Inventory to manage over one thousand parties a year
  • Spotlight: Building a Loan Calculator with GP Advanced Calculations

Categories

  • How To (73)
  • News (25)
  • Plugins (19)
  • Releases (13)
  • Resource (3)
  • Snippets (50)
  • Spotlights (14)
  • Tutorials (57)
  • Uncategorized (5)
  • Updates (152)

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2022 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Terms & Conditions of Use
  • Privacy Policy
  • Cookies Policy

Get access to hundreds of Gravity Forms plugins for free!

Enter your email and receive a list of our most popular free snippets and plugins for Gravity Forms.

  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account