Creating an "Edit Your Profile" link

So you use Gravity Forms and the  User Registration add-on to register new WordPress users on your website and now you want to allow these users to edit their "profile" on the front-end of your website? 

That's easy! You can accomplish that with just GravityView and the  Advanced Filter extension.

Step 1: Creating a View

It's as simple as creating a View using the List View layout with just a  Custom Content field on it. We are going to use the [gv_ entry_link] Shortcode inside this Custom Content field to direct our "Edit Your Profile" link to a dedicated View page where your users will be able to edit their profile.

Step 2: Filtering the View

In this step, we'll make sure each user can only see their own entry (form submission) by using this simple filtering rule (properly explained here  How to show only results submitted by the current user):

Step 3: Embedding the View

Now, we'll embed our View in a sidebar from our theme using the help of this super helpful and small plugin:  Shortcode Widget. This plugin adds a new widget to your theme that allows us to write the [gravityview] shortcode inside of it, so the View will show up in our sidebar.

We are also using the handy  [members_logged_in] shortcode from the Members plugin so that our "Edit Your Profile" link (our View actually) only shows up for logged-in users.

You can also use the built-in  [gvlogic] shortcode to achieve this.

Step 4: Styling the View 

If you noticed our little View does contain a border around the link. That's because we are using the List View template, so let's get rid of it so only the "Edit Your Profile" link is visible.

Add this CSS to your theme stylesheet: 

.gv-list-view { border: none !important; }

Step 5: We're done!

Now, when your users log into your website, they will have a nice sidebar displaying their information as long as a link to edit their profile:


You might have noticed that nice "welcome" message with the currently logged-in user's avatar and a link to "log out" in our sidebar, right? Well, that's done using a built-in widget from the User Registration add-on: 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.