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
{gravitycharts}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