GravityKit Add-On Shortcodes (a complete reference)
This guide is your quick-reference library for all GravityKit shortcodes.
Shortcodes let you display Views, charts, calendars, and more, right where you need them.
For each shortcode, you’ll see a simple description of what it does and a link to a detailed guide with examples, parameters, and best practices.
GravityView
[gravityview]— Embed a View anywhere on your site. Accepts attributes to select the View and control output. Supports thesecretattribute for restricted rendering.Further reading: GravityView shortcode documentation
[gvlogic]and[gvlogic2]— Conditionally show or hide content anywhere (front end, posts, widgets, Custom Content fields, etc.). Supports thesecretattribute for restricted rendering.Further reading: gvlogic shortcode guide
[gv_entry_link]— Output a link to a specific entry (or a View’s Single Entry). Useful for linking from outside a View or between Views. Supports thesecretattribute for restricted rendering.Further reading: Deep-dive on entry links
[gvfield]— Print a single field’s value from a specific entry wherever you place the shortcode. Supports thesecretattribute for restricted rendering.Further reading: Guide to embedding individual field values
[gventry]— Render values from an entry by ID; helpful for displaying multiple fields without a full View. Supports thesecretattribute for restricted rendering.Further reading: How to output entry data with the shortcode
GravityView widget shortcodes
[gravityview_widget_pagination_info]— Outputs “Displaying X–Y of Z results.” Not shown on Single Entry pages.Further reading: Widget shortcode reference (pagination info)
[gravityview_widget_page_links]— Displays pagination links. Not shown on Single Entry pages.Further reading: Widget shortcode reference (page links)
GravityMath
[gravitymath]— Perform calculations (sum, average, min/max, counts, date/time math, etc.) over entries and output the result anywhere shortcodes are processed. Works great with Views and WordPress content. Supports thesecretattribute for restricted rendering.Further reading: Comprehensive math shortcode guide
GravityCharts
[gravitycharts]— Embed a chart from a GravityCharts feed. Supports attributes likewidthandheight(and more) to control image charts. Supports thesecretattribute for restricted rendering. Further reading: Shortcode options and parameters(Related, but not a shortcode: the
<em>{gravitycharts}</em>merge tag can also output image charts; you can pass shortcode-style attributes through the merge tag as an override.)Further reading: Using the GravityCharts merge tag
GravityCalendar
[gravitycalendar]— Embed a live-updating calendar feed on your site.Further reading: Calendar shortcode overview
[gravitycalendar_link]— Display a subscribe link for the feed (Google/Apple Calendar, etc.); supportsevent_idto link a specific entry.Further reading: Subscription link shortcode details
[gravitycalendar_copy_button]— Show a button that copies the calendar feed URL to the clipboard.Further reading: Copy-button shortcode reference
[gravitycalendar_export_button]— Provide a button to download an.icsevent configuration file for importing into calendar apps.Further reading: Export-button shortcode reference
Need to process shortcodes safely?
Many GravityKit shortcodes support a secret attribute to restrict rendering to trusted contexts; see the security notes before exposing sensitive data via shortcodes.
Further reading: Enhanced security with the secret attribute