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.

New posts only by registered users

  1. Hello there,
    does Gravity Forms please have a possibility to allow adding new post only to registered users? By default anyone can submit a new post by a form but we would need to allow this only to visitors with user account + ideally have a possibility to create a new user account right from the form.

    Thanks for your answer, Jakub

    Posted 11 years ago on Friday November 23, 2012 | Permalink
  2. David Peralty

    Gravity Forms doesn't really have this on its own. There are many plugins and easily pieces of PHP code to do that though.

    There is : is_user_logged_in() which is a WordPRess function that can be used to test for logged in users.

    All my best!

    Posted 11 years ago on Friday November 23, 2012 | Permalink
  3. Also, on the Advanced Tab of the Form Settings, there is a checkbox "Require user to be logged in" - that will show an alternate message to non-logged in visitors, or will show the form is the visitor is logged in. Maybe that will work in your case.

    You can even modify the message which is shown to non-logged in users and include the shortcode there to your registration form page. That way, if they're not logged in, they will be directed to the Registration form, or if they're logged in, they just see the form to create a post.

    Posted 11 years ago on Monday November 26, 2012 | Permalink