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 the secret attribute 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 the secret attribute 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 the secret attribute 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 the secret attribute 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 the secret attribute for restricted rendering.

    Further reading: How to output entry data with the shortcode

GravityView widget shortcodes


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 the secret attribute for restricted rendering.

    Further reading: Comprehensive math shortcode guide


GravityCharts

  • [gravitycharts] — Embed a chart from a GravityCharts feed. Supports attributes like width and height (and more) to control image charts. Supports the secret attribute 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.); supports event_id to 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 .ics event 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

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us