Home » Blog » How to display form entries to logged in WordPress users
Blog, Conductor

One of the most frequently asked questions we receive about our new Gravity Forms and Ninja Forms add-ons is: How to display form entries, to logged in users only.

While Conductor doesn’t support it out of the box, there are some great plugins that can help! In this video I’ll show you how to use Hide This plugin to hide a table of Gravity Forms entries, to logged in users only. If you’re looking for a more robust membership plugin to manage users, you might look to Paid Memberships Pro, for more options.

Enjoy the video tutorial below.

Display Conductor content to logged in users only

This video talks about protecting Gravity Forms entries, but it can be applied to any WordPress content or content blocks being displayed via Conductor.

Full video transcript with  time stamps

Hey, everybody, Welcome back to ConductorPlugin.com. In today’s tutorial, I want to talk about the most requested feature that we have, and that is to show content to only logged in users, and specifically with our Gravity Forms and Ninja Forms add-ons. Folks are constantly asking, “Hey, how can I show this stuff in a table, but I only want to show those forms submissions to people who are logged into my website?” Administrators, managers, whatever it might be. Conductor, we don’t have any of those [00:00:30] options out of the box. We really want to focus on being great at content blocks and helping you display content, so we really rely on other plugins for hiding or user management or membership, that kind of thing.

The easiest plugin to use for this situation is a plugin called Hide This, and it uses a simple short code, and I’m going to show you how to use that in today’s video. But if you wanted to go beyond this, depending on what you needed for your website, you’d might need a membership plugin or some kind of user [00:01:00] profile plugin, and you can search for those. The concept still works regardless of what plugin you might choose. Let’s take a look at this. Hide this plugin using a short code. Let’s dive right into it.

On this page, I already have my Conductor Query short code dropped into the page, and if we take a look at this page, this is an example of showing Gravity Form submissions or entries in a table. There are other videos if you want to check that out. Hopefully I can link that up in this video, but [00:01:30] I want to show you how to hide this, so I’m going to go ahead. We have already had that plugin installed and activated, and it just uses a simple short code, and I’m going to demonstrate that right now. I’m going to wrap this with the hide short code, and I’m going to go ahead and refresh this page.

You’ll see that it hides it indefinitely. Even though I am logged in and an admin to this site, I can’t see it because it’s by default the hide tag, or short code, excuse me, will hide it for good. [You’re either 00:01:58] logged in or not logged in, that kind of thing. If we [00:02:00] hop on over to the plugin page for Hide This, you can see we can extend this stuff. We can do this for people who are not logged in and people who are logged in, so let’s take a look at that example.

I’m going to use this first example right here, and this is going to show this content for people who are logged into the website but not for people who are not logged in, so let’s go ahead and go four equals logged, close that. I will … Whoops forgot [inaudible 00:02:28] quote there. [00:02:30] Let’s go ahead and hit update, and we will refresh this page, and you can see, our table is back, and I am logged in. If I hop on over to the incognito window, let me pull that up, and I go [inaudible 00:02:44] WP Gravity, you can see right here, look, the person who is logged out of the site does not see that table. That is the simplest way to lock out anybody who’s not logged into the site.

With this plugin, [00:03:00] you can even drill down. If you have different user roles that people are logged into, you can specify those here with editor, [comma 00:03:07], contributor and so on and so forth, so you can really play with that and match it up. But one quick little tip. If you wanted this page to give somebody some direction to log in, let’s say, so let’s just say this is a common thing where people come to this page every day or whatever, at least once a week, that kind of thing, but they’re not really WordPress familiar or savvy, they don’t really remember how to log in to your website, [00:03:30] you could put a little message here to log in that is not seen while somebody is logged in, so let’s go ahead and take a look at that.

We can go hide four equals logged. I always forget the quotes, so let’s go logged, and then we’ll say, “Log in by clicking here,” and then we’ll close this hide short code. [00:04:00] Just to make it, we’ll just do [weekend 00:04:04]WP.com/login, and that’ll be our log in link. I will now hit update, and let’s just take a look at it from a logged-in user’s perspective. I’m going to refresh this page, and look, that message is not there. This short code is saying, “Hey, we’re going to hide this for logged in people, and if you’re logged in, you’re not going to see this little link right here.” But if we switch over to our incognito window and refresh this, boom, you can [00:04:30] see right here, “Log in by clicking here,” and then somebody can click that and then log into this website, which will then give them access because they’ll logged in first and foremost, and then they can come over to this page and see these user forms submissions.

That’s how you can show or hide contact forms or custom post-type fields or whatever it is you’re building as a display with Conductor Plugin. It’s ConductorPlugin.com. Check it out. If you have any questions, ConductorPlugin.com/Contact. [00:05:00] We’ll see you in the next video.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.