How to show a single entry without the Multiple Entries page
GravityView has no setting that turns off a View’s Multiple Entries page. To show one entry by itself, embed it on a page with the GravityView Entry block or the [gventry] shortcode.
Show one specific entry on a page #
Add a GravityView Entry block to the page, choose the View, and type the entry ID. With a Shortcode block, use [gventry entry_id="6" view_id="137"] with your own entry and View IDs. The entry shows in the View’s Single Entry layout, with no list of entries and no Go back link.
Set up the Single Entry layout first, as Getting Started: Adding Fields to the Multiple Entries and Single Entry Pages shows. Embedding single entries in a post or page shows where to find both IDs, and Embedding Views, entries and fields using blocks covers the block.

The entry has to come from the form the View uses. If the View shows only approved entries, visitors see nothing for an entry that is not approved.
Note: When Enable Enhanced Security is turned on in the View’s Permissions tab, the shortcode also needs the View’s secret, as in [gventry entry_id="6" view_id="137" secret="your-secret"]. New Views start with it turned on, and the Embed Shortcode box in the View editor shows the secret. See Enable Enhanced Security: the secret attribute for shortcodes.
Choose the entry from the page address #
The shortcode can take the entry ID from the address of the page. With [gventry entry_id="{get:entry}" view_id="137"] on a page, a link to /profile/?entry=6 shows entry 6, so one page can show whichever entry you link to.
Warning: Visitors can change the number in the address. The shortcode shows only entries the View lists, so an entry the View’s filters leave out shows nothing. On a View with a password, the shortcode shows the password form, and a draft or private View shows its entry only to signed-in users who can read it, such as administrators.
When the links come from another View, you can skip the separate page. With Connected Views in GravityView Pro, set the Link to setting of a field that saves entry IDs, such as a Dynamic Lookup field, to An entry in another View and choose the View. Under When visitors click a link, Stay in this View, the default, opens the entry under the entry the visitor came from, with breadcrumbs and a Back link.
The other View can have Prevent Direct Access turned on, so its list never opens at its own address. Getting started with Connected Views explains the setting.
Always show the newest entry #
The shortcode’s first and last follow the View’s sort order:
- On a View left at its default order, Default (Entry ID) and Ascending, the oldest entry comes first. Use
[gventry entry_id="last" view_id="137"], or set a GravityView Entry block to Last. - To use
firstinstead, sort the View newest first. In the Filter & Sort tab of the Settings box, choose Date Created under Sort by field and Descending under Sort direction, then click Update.
The View’s filters still apply, so the page shows the newest entry the View lists. If the View shows only approved entries, a new entry shows once someone approves it. Using the [gventry] shortcode lists the shortcode’s other settings.
Show each member their own entry #
Turn on Show only entries created by the currently logged-in user in the View Settings tab, and the View lists only the entries the visitor’s own account created. On that View, [gventry entry_id="first" view_id="137"] shows the visitor’s first entry in the View’s sort order, or nothing when they have none. Each member sees their own entry at the same address.
The setting is part of Advanced Filtering in GravityView Pro, and How to show only entries created by the currently logged-in user explains it. How to redirect members to their own profile entry after login has the full setup.
Show visitors their own entry without an account #
People who fill in your form without signing in can still see their own answers on a results page. Each entry gets a random key, the form sends the visitor to the results page with that key in the address, and the View shows only the entry with that key. The View reads the key with the {get} merge tag, and the filter needs the Advanced Filtering feature in GravityView Pro.
Give each entry a random key
Add a Hidden field to the form, such as one labeled Results key. Then add this code to your site, with your form’s ID in place of 12 and the Hidden field’s ID in place of 6:
// Give each new entry of form 12 a random 32-character key in field 6.
add_action( 'gform_pre_submission_12', function () {
$_POST['input_6'] = wp_generate_password( 32, false );
} );Note: Adding custom PHP code snippets to your website shows where to put this code.
When the form is submitted, the code puts 32 random letters and digits in the field and replaces anything the visitor’s browser sent.
Show only the entry that matches the key
Edit the View and open the Filter & Sort tab of the Settings box. Under Advanced Filter:
- Click Add Condition, choose Results key and
is, and type{get:key}. - Click + Condition, then choose Results key and
is not empty. - Click AND so that both conditions apply.

The second condition makes sure an entry with an empty key, such as an entry from before you added the field, never shows on the page.
New entries start out unapproved, so turn off Show only approved entries in the View Settings tab. Otherwise a visitor sees nothing until you approve their entry. Click Update.
Put the entry on the results page with this shortcode, with your View’s ID and secret in it:
[gventry entry_id="first" view_id="137" secret="your-secret"]The page shows the matching entry in the View’s Single Entry layout.
Send visitors to their results
In the form’s Settings, open Confirmations and edit the confirmation:
- Set Confirmation Type to Redirect.
- In Redirect URL, enter the address of the results page.
- In Pass Field Data via Query String, type
key=and add the Results key merge tag, as inkey={Results key:6}. - Click Save Confirmation.

After submitting, the visitor lands on an address such as https://example.com/your-results/?key=5sB3wvSOtro04pB2jjS1JEVL49TZkBX5 and sees their own answers.

To give visitors a link they can come back to, put the same address in a notification, with the merge tag in place of the key: https://example.com/your-results/?key={Results key:6}.
Keep the key private
The key is the only thing that keeps one visitor’s entry apart from another’s. Anyone with the link can open the entry, so send it only to the person who filled in the form.
With no key, or with a wrong one, the page shows nothing. Changing the entry ID in a Single Entry address doesn’t open another entry either, because the View’s filter applies there too.
Never use a value someone could guess as the key, such as an entry ID or an email address. A {get} condition shows whatever matches the value in the address, so with a guessable key, anyone who tries a few values sees other people’s answers. Before you send visitors to the page, open it once with no key and once with a made-up key, and check that it shows nothing.
Hide the list until someone searches #
To let visitors look up entries without browsing the whole list, add a Search Bar widget to the Multiple Entries layout. Then turn on Hide View data until search is performed in the Multiple Entries tab of the Settings box, and click Update.
The View shows no entries until a visitor searches, and a search can return several entries. The setting hides the list only, so Single Entry pages still open from their own addresses. How to hide results and only display them if a search is performed explains what counts as a search.
Remove the Go back link from Single Entry pages #
A Single Entry page opened through a View has a Go back link to the Multiple Entries page, even when the visitor arrived from an email or another page. An entry embedded with the block or shortcode has no such link. This snippet removes the link from the entries of one View:
// Remove the Go back link from the Single Entry pages of one View.
add_filter( 'gravityview/template/links/back/url', function ( $href, $context = null ) {
$view = $context instanceof \GV\Template_Context ? $context->view : null;
$view_id = $view instanceof \GV\View ? $view->ID : gravityview_get_view_id();
// Replace 123 with the ID of your View.
if ( 123 === (int) $view_id ) {
return false;
}
return $href;
}, 30, 2 );Note: Adding custom PHP code snippets to your website shows where to put this code.
The 30 at the end runs the snippet after Connected Views in GravityView Pro, which sets the Back link on every page of a path, including the entries of the View visitors start from. This View’s entries then have no Back link, also where they open as a step of a path, while the other Views on the path keep theirs.
To remove the link from every View, or to send it somewhere else, see How to change where the Go Back link takes visitors.
Note: Removing the link leaves the list open. Take the entry part off a Single Entry address, and the page lists every entry again.
Prevent Direct Access closes the View’s own addresses under /view/, including its Single Entry addresses, and a View embedded on a page keeps working as before, list included. The Prevent Direct Access setting explains it.