---
title: "An overview of shortcodes added by GravityView"
date: 2026-04-23
updated: 2026-11-09
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/shortcodes/an-overview-of-shortcodes-added-by-gravityview/"
category: "GravityView > Shortcodes"
---

These are the shortcodes you can use with GravityView, with a link to the full guide for each one.

## The `[gravityview]` shortcode

`[gravityview]` embeds a View on a page or post, or inside another View's Custom Content field. Its parameters can change how many entries it shows or print a single detail, such as the number of entries. [Using the `[gravityview]` shortcode](https://www.gravitykit.com/docs/gravityview/shortcodes/using-the-shortcode/) lists them.

## The `[gvlogic]` shortcode

`[gvlogic]` shows or hides content depending on a value, such as a field in the entry, a date, or whether the visitor is signed in. You can use it in a Custom Content field in a View, or on a page or post, as in [Using `[gvlogic]` to show or hide content anywhere on your site](https://www.gravitykit.com/docs/gravityview/advanced/show-or-hide-content-on-your-site/). [Using the `[gvlogic]` shortcode](https://www.gravitykit.com/docs/gravityview/shortcodes/gvlogic-shortcode/) has every comparison it can make.

It has no option for a user's role. [Checking a user's role](https://www.gravitykit.com/docs/gravityview/shortcodes/gvlogic-shortcode/#user-roles) lists the approaches that work.

## The `[gv_entry_link]` shortcode

`[gv_entry_link]` creates a link to view, edit, or delete one entry. You can use it on a page or post, or in a Custom Content field in a View, where it links to the current entry. [The `[gv_entry_link]` shortcode](https://www.gravitykit.com/docs/gravityview/shortcodes/gv-entry-link/) lists its options.

## The `[gvfield]` shortcode

`[gvfield]` prints one field's value from a single entry, on a page or post or in a Custom Content field. Its `entry_id` parameter accepts an entry ID, or `first` or `last` to use the first or last entry in the View's sort order. [Using the `[gvfield]` shortcode to embed single field values](https://www.gravitykit.com/docs/gravityview/shortcodes/gvfield-embed-gravity-forms-field-values/) has the details.

## The `[gventry]` shortcode

`[gventry]` shows one entry on a page or post in the View's Single Entry layout, so the View needs fields in that layout. [Using the `[gventry]` shortcode](https://www.gravitykit.com/docs/gravityview/shortcodes/gventry-shortcode/) has the details.

## The `[gv_age]` shortcode

`[gv_age]` calculates a person's age from a Date field. You add this shortcode yourself with the code in [Calculating a person's age based on a date field](https://www.gravitykit.com/docs/gravityview/advanced/calculating-a-persons-age-based-on-a-date-field/), then use it in a Custom Content field.

## The `[gv_pageviews]` shortcode

`[gv_pageviews]` shows how many times an entry has been viewed, on the Single Entry page, when the [Pageviews plugin](https://wordpress.org/plugins/pageviews/) is active. [How to track pageviews for entries](https://www.gravitykit.com/docs/gravityview/advanced/track-pageviews-for-entries/) has the setup.

For the shortcodes in other GravityKit products, see [GravityKit Add-On Shortcodes (a complete reference)](https://www.gravitykit.com/docs/general-help/add-on-shortcodes/).