How to embed a View inside another View to show related entries
A View’s Single Entry page can list related entries from another View, filtered by a value from the entry on the page. A crew member’s page can list the tasks they created, and a client’s page can list its projects. This guide shows how to add the field that does it and what to enter for the common setups.
What the field is called, and where you set its filter, depend on whether your site runs Connected Views, a feature of GravityView Pro that is on by default:
- With Connected Views, the field is called Connected View. You set its filter in the field’s Display settings, under Which entries it shows. Connect to another View, next to it in the field picker, adds the field with its filter filled in. Getting started with Connected Views covers that dialog and the links that take visitors from an entry to its related entries and back.
- Without Connected Views, the field is called GravityView View, and its filter is the Search field, Search operator, and Search value boxes in its Advanced settings.
Add the field #
First, create the View to embed. Build it on the form that holds the related entries, and put the fields to list in its Multiple Entries Layout: that layout is what shows inside the other View.
With Connected Views, to list entries people sent through a form on the same Single Entry page, follow the steps under Show entries submitted from the Single Entry page instead of these. Those steps add the field for you.
- Edit the View whose Single Entry page should show the related entries, and click the Single Entry Layout tab.
- Click Add Field and choose Connected View, or GravityView View on a site without Connected Views. On a Table layout, the button reads Add Table Column. To find the field quickly, type its name in the box at the top of the picker.

- Click the gear icon on the new field. Under View to embed, choose the View you created.
- Set which entries it lists. With Connected Views, complete the sentence under Which entries it shows, such as “Show Projects whose Client matches this entry’s ID”. Without Connected Views, fill in Search field, Search operator, and Search value in the Advanced section. The sections below give the values for common setups.

- Click Update to save the View.
Show entries that share a value with the entry on the page #
Use this when the related entries store a value from the entry on the page. In this example, each project’s Client field is a Dynamic Lookup field that saves the ID of the client’s entry, so a client’s page can list its projects.
With Connected Views, choose the embedded View’s Client field, matches, and this entry’s ID in the sentence. For a field that holds text, such as a name, choose that field of the outer form after “this entry’s” instead of ID.
Without Connected Views, enter:
- Search field: the ID of the field in the embedded View’s form,
2for Client. - Search operator:
is - Search value: the merge tag of the matching value in the entry on the page. For a field that saves entry IDs, that’s
{entry_id}. For a field that holds text, such as a name, use the outer form’s field, such as{Name:1}.
The Insert merge tag icon to the right of the Search value box lists the outer form’s fields.
To find a field’s ID, open the form in the Gravity Forms form editor and click the field. The ID shows at the top of the Field Settings panel.

Each client’s page then lists only the projects whose Client field holds that client’s entry ID.
Show the entries created by the person on the page #
Use this when the View lists people, such as staff or members, and each person’s entry was created by their own WordPress user account. These values go in the Search field, Search operator, and Search value boxes of the GravityView View field, in its Advanced settings:
- Search field:
created_by - Search operator:
is - Search value:
{created_by:ID}

{created_by:ID} is the user ID of whoever created the entry on the page, so each person’s page lists only the entries they created.

How Gravity Forms records the user who created an entry explains when an entry gets a creator and how to change it.
Show entries submitted from the Single Entry page #
People can add related entries through a form shown on the same Single Entry page by the Gravity Forms field, as How to embed a form for each entry in a View describes. Each entry submitted that way stores the ID of the entry it came from, and the embedded View can filter on it.
With Connected Views, the Connect to another View dialog finds this link and fills in the filter:
- Add the Gravity Forms field to the Single Entry layout, choose the form under Form to display, and click Update.
- In the same layout, click Add Field and choose Connect to another View.
- Under Which View?, choose the View of the submitted entries and click Next. The dialog says each entry in that View was added through GravityView’s Gravity Forms field on an entry in this View. If it lists more than one way the two Views are connected, select that one, since another may be selected already.
- Check the Field label. Under On each entry in this View:, choose Embed the matching entries.
- Click Add to this View, then click Update.
The field it adds filters on gk_parent_entry_id is {entry_id}. Without Connected Views, enter those values in the GravityView View field’s boxes:
- Search field:
gk_parent_entry_id - Search operator:
is - Search value:
{entry_id}
Only entries submitted through that form are listed, because entries added anywhere else don’t store the parent entry’s ID. Parent Entry ID and Parent Form ID has more on these values.
Field settings #
| Setting | Where it is | What it does |
|---|---|---|
| View to embed | Display | Sets the View shown on the Single Entry page. With Connected Views, it’s named View to open while the field shows a link. Without Connected Views, the View you’re editing isn’t listed. |
| Show as | Display, with Connected Views | Show the matching entries here lists them inside the entry. A link that opens the matching entries shows a link, and the list opens when a visitor clicks it. |
| Which entries it shows | Display, with Connected Views | Sets the filter with a sentence built from the embedded View’s form fields and this entry’s ID or fields, such as “Show Projects whose Client matches this entry’s ID”. Its choices for how they match are matches, does not match, contains, starts with, ends with, and includes. When the sentence can’t show the saved filter, such as one on gk_parent_entry_id, the Search field, Search operator, and Search value boxes appear instead. |
| Search field | Advanced; with Connected Views, Display when the sentence can’t show the saved filter | The field ID or entry property the embedded View filters on, such as 2, created_by, or gk_parent_entry_id. Left empty, the embedded View looks for the Search value in every field. |
| Search operator | Same as Search field | How the value is compared. The operators are described below the table. |
| Search value | Same as Search field | The value to match. Merge tags are filled in from the entry on the page. A merge tag with no value for that entry lists no entries, unless the next setting says otherwise. |
| When the search value is empty | Advanced | What the field lists for an entry that has no value for the Search value’s merge tag. It shows once the Search value holds a merge tag. The choices are Show no entries (the default) and Show all entries. Show all entries lists every entry for an entry that has no value for the tag. With the is not operator, an empty value lists every entry either way. With the is operator, {user:ID} matches no entries for a signed-out visitor, even with Show all entries. |
| When visitors click a link: | Display, with Connected Views | Stay in this View opens a clicked entry below this entry, with breadcrumbs and a Back link. Go to the … page opens it at the embedded View’s own address. When the embedded View has Prevent Direct Access turned on, clicks stay in this View either way. |
| Override start date and Override end date | Advanced | Show only entries created after or before a date. Relative dates such as -1 week and tomorrow work. |
| Override page size | Advanced | How many entries the embedded View shows: 10, 25, 50, or 100. Use View setting keeps the embedded View’s own number. |
The Search operator choices:
is: an exact match.is not: leaves out the entries that match.contains: matches part of the text.starts withandends with: match the start or the end of the text.like:%stands for any text, as inAna%. Without a%, it matches part of the text, likecontains.in: matches any of several values separated by commas.
With Connected Views, the Search operator box shows in as is one of (comma-separated) and adds includes (one of several values). It hides like unless the saved filter already uses it. Getting started with Connected Views explains when to choose includes.
Settings the embedded View keeps #
The embedded View keeps its own sort order, its Show only approved entries setting, and its page size.
Inside the field, a Table View has no widgets, so there is no Search Bar and no page links: when there are more entries than the page size, only the first page shows. If the list gets cut off, raise Override page size. A DataTables View keeps its own search box and page buttons.
Without Connected Views, links in the embedded View open each entry on the embedded View’s own page. With Connected Views, When visitors click a link decides where it opens.