Linking a calendar event to its single entry page
A GravityCalendar event shows its title, plus a short description when a visitor points at it. Clicking the event can open its single entry page in GravityView, which shows the fields you add to the View’s Single Entry Layout tab. A “Read more” link in the event description can open the same page, or show the entry in a lightbox over the calendar.
Before you begin #
- GravityView must be active. The Link to Single Entry option appears only when it is.
- You need a View connected to the same form as your calendar, with the event’s fields added to its Single Entry Layout tab. If you haven’t set one up yet, see Getting Started: Adding Fields to the Multiple Entries and Single Entry Pages.
Step 1: Open your calendar’s settings #
- In your WordPress dashboard, go to GravityKit, then click All Calendars.
- Click the name of your calendar.

Step 2: Link the event to its single entry page #
These settings are in the Calendar Fields section.
- Set Event URL Type to Link to Single Entry.
- Under Link to a Single Entry, select your View. The list shows only the Views connected to this calendar’s form.
- If your View is embedded on a page and you want events to open the entry there, enter that page’s ID in Embedded Page ID (Optional). Use the ID of the page that shows the View, not the page that shows the calendar. If you enter the calendar page’s ID, clicking an event reloads the calendar.

The back link on the single entry page takes visitors to the calendar they came from.
To find a page’s ID, go to Pages and click the page’s title to edit it. The number after post= in your browser’s address bar is the ID.
Step 3: Add a “Read more” link to the event description #
A “Read more” link in the event description works with or without Step 2.
- In the Calendar Fields section, find Event Description.
- Add the
[gv_entry_link]shortcode where you want the link to appear:
[gv_entry_link view_id="785" entry_id="{entry_id}"]Read more[/gv_entry_link]- Replace
785with the ID of your View. It’s theidnumber in the View’s shortcode, shown in the Shortcode column of the All Views screen under GravityKit. - Leave
entry_id="{entry_id}"as it is. GravityCalendar fills in each event’s own entry ID. - To change the link text, replace
Read morewith your own words.

If your View is embedded on a page and you want the link to open the entry there, add the post_id attribute with that page’s ID:
[gv_entry_link view_id="785" entry_id="{entry_id}" post_id="787"]Read more[/gv_entry_link]The Embedded Page ID (Optional) setting from Step 2 doesn’t change this link.
The shortcode accepts more attributes, listed in The [gv_entry_link] shortcode.
Open the entry in a lightbox
Add lightbox="true" to the shortcode to show the entry in a lightbox over the calendar page:
[gv_entry_link view_id="785" entry_id="{entry_id}" lightbox="true"]Read more[/gv_entry_link]
The lightbox shows the fields on the View’s Single Entry Layout tab.
Turn on Allow HTML Content
The shortcode creates an HTML link. The calendar shows HTML in the description only when Allow HTML Content is on. With it off, visitors see the link’s code as plain text.
- Scroll down to the Calendar Settings section.
- Under Allow HTML Content, check Enable.

Step 4: Save and test the calendar #
- Click Save Settings at the bottom of the page.
- Open a page that displays the calendar. If you haven’t added it to a page yet, see Displaying a calendar.
- Click an event, or point at it and click the “Read more” link.

Show the event on a map #
To show the event’s location on a map, add an Entry Map field from Maps (GravityView Pro) to the View’s single entry layout and choose the address field in the View’s Maps settings. Clicking the event then opens the entry with its map. If Maps isn’t set up yet, see Getting Started With the Maps Layout, which covers the Google Maps API key the map needs.
If the single entry page doesn’t show the event #
| What you see | What to do |
|---|---|
| “You are not allowed to view this content.” on the single entry page, or “The requested entry could not be found.” in the lightbox | The View shows only approved entries, and this entry isn’t approved. Approve the entry, or uncheck Show only approved entries on the View’s View Settings tab. |
| Visitors who aren’t logged in get a 404 (page not found) error | The View has Prevent Direct Access checked on its Permissions tab, so they can’t open the View’s own address. Link to the page that embeds the View with Embedded Page ID (Optional) or the post_id attribute. |
| The “Read more” link is missing for visitors | The View has Enable Enhanced Security checked, so the shortcode needs the View’s secret attribute. See Enable Enhanced Security: the secret attribute for shortcodes. |