GravityView 2.0 🚀
We are proud to share this release with you: we have been working on this release since 2016, and although most of the changes won’t be seen, GravityView has a brand-new engine that will power the plugin into the future! 🚀
- Zack with GravityView
Note: GravityView now requires PHP 5.3 or newer
This is a major release. Please back up your site before updating. We have tested the plugin thoroughly, but we suggest backing up your site before updating all plugins.
New functionality
[gventry]
: embed entries in a post, page or a View (learn more)[gvfield]
: embed single field values (learn more)- Many new Merge Tag modifiers - These enable powerful new abilities when using the Custom Content field!
- Use oEmbed with Custom Content fields - easily embed YouTube videos, Tweets (and much more) on your Custom Content field
- "Is Starred" field - display whether an entry is "Starred" in Gravity Forms or not, and star/unstar it from the front end of your site
- Added Bosnian, Iranian, and Canadian French translations, updated many others (thank you all!)
Smaller changes
- Added
{gv_entry_link}
Merge Tag, alias of[gv_entry_link]
shortcode in{gv_entry_link:[post id]:[action]}
format. This allows you to use{gv_entry_link}
inside HTML tags, where you are not able to use the[gv_entry_link]
shortcode. - Default
[gvlogic]
comparison is now set toisnot=""
; this way, you can just use[gvlogic if="{example:1}"]
instead of[gvlogic if="{example:1}" isnot=""]
to check if a field has a value.
Developer Updates
This release is the biggest ever for developers! Even so, we have taken great care to provide backward compatibility with GravityView 1.x. Other than increasing the minimum version of PHP to 5.3, no breaking changes were made.
- We have rewritten the plugin from the ground up. Learn all about it here.
- New REST API! Fetch GravityView details and entries using the WordPress REST API endpoint. It's disabled by default, but can be enabled or disabled globally on GravityView Settings screen, or per-View in View Settings. Learn about the endpoints.
- New
gravityview()
API wrapper function, now used for easy access to everything you could want - New template structure (learn how to migrate your custom template files)
- We have gotten rid of global state; actions and filters are now passed a
$context
argument, a\GV\Template_Context
object - When HTML 5 is enabled in Gravity Forms, now the Search All field will use
type="search"
- Countless new filters and actions! Additional documentation will be coming, both on docs.gravityview.co as well as codex.gravityview.co.
A special thanks to Gennady for your tireless pursuit of better code, insistence on backward compatibility, and your positive attitude. 👏