跳到内容

GravityOps Search – Search and Display Gravity Forms Entries – Lite

v1.2.5

BrightLeaf Digital · 2025年9月18日 上架

Search Gravity Forms entries from a shortcode and show matching results anywhere on your site, filtered by any field and formatted your way.

正在使用
10 以下
评分
暂无
累计下载
1,578
最近更新
2026年11月17日
需要 WordPress 6.5+已测试到 7.1.5PHP 8.0+

截图

Gravity Forms entries displayed on a front-end page with a search shortcode.
Gravity Forms entries displayed on a front-end page with a search shortcode.
Search shortcode filtering Gravity Forms entries by field value in the block editor.
Search shortcode filtering Gravity Forms entries by field value in the block editor.
Gravity Forms entries shown as an HTML table with a custom display template.
Gravity Forms entries shown as an HTML table with a custom display template.
Visual shortcode builder for searching Gravity Forms entries (Premium).
Visual shortcode builder for searching Gravity Forms entries (Premium).
Saved shortcodes library for Gravity Forms entry searches (Premium).
Saved shortcodes library for Gravity Forms entry searches (Premium).

GravityOps Search gives Gravity Forms site builders a [gravops_search] shortcode that finds entries by any field and prints the matching values anywhere on the front end, formatted however you need.

Feature
Free
Premium

[gravops_search] shortcode: search one, several, or all forms
Yes
Yes

Filter by field ID, entry property, field label, or field type
Yes
Yes

Operators: equals, not equals, contains, like, in / not in, greater / less than
Yes
Yes

Custom display templates with HTML, placeholders, and nested shortcodes
Yes
Yes

Sorting, secondary sort, limits, unique results, default values
Yes
Yes

Admin entry links on each result
Yes
Yes

Docs and Help tabs in the GravityOps dashboard
Yes
Yes

Visual Shortcode Builder with live preview, validation, and test run
No
Yes

Builder presets and starter templates
No
Yes

Saved Shortcodes library (copy, edit in builder, delete)
No
Yes

Drop the shortcode into a page, post, GravityView field, or template and it works like a lookup for Gravity Forms entries: you choose which forms and fields to search, how to compare the values, and what to output for each match. It needs no PHP and no custom queries.

The shortcode can show a single field from the latest matching entry or build a reporting-style view that combines fields, entry properties, and custom HTML. Everything is driven by attributes, so you decide exactly which entries are included and how their data appears.

GravityOps Search is for front-end display. It does not add search tools to the Gravity Forms admin Entries screen.

GravityOps Search requires Gravity Forms.

Features

  • Target all forms (target="0"), a single form, or a comma-separated list of form IDs.
  • Filter by a comma-separated list of field IDs or entry properties with the search attribute.
  • Filter by field label (search_label) or field type (search_type) to search across forms whose field IDs differ. field_match controls whether the first or every matching field is used.
  • Pass search values in the shortcode content, separated by a pipe (|) in the same order as the search fields.
  • Require all conditions (default) or any condition with search_mode="any".
  • Search every field at once by leaving a search ID blank.
  • Control each comparison with the operators attribute: equals, not equals, contains, SQL-style like, in / not in lists, and numeric greater than / less than (or equal).
  • Display one or many fields and properties per result with the display attribute, from a simple field list to a full HTML template.
  • Use placeholders such as {13}, {13.3}, {id}, {form_id}, and {gos:id}, plus {gos:num_results} for the number of matches.
  • Control how results are joined with separator, including HTML separators or no separator (__none__).
  • Sort with sort_key, sort_direction (ASC, DESC, RAND), and sort_is_num, with secondary_sort_key and secondary_sort_direction for tie-breaking.
  • Limit results with limit, or show every match with limit="all".
  • Remove duplicate output with unique.
  • Find empty or blank values with search_empty.
  • Show fallback text when nothing matches, or per-field defaults when a value is empty, with default.
  • Wrap each result in a link to the entry in the Gravity Forms admin with link.
  • Nest GravityMath, another [gravops_search], or any other shortcode inside the output.
  • Runs alongside the legacy gfsearch snippet without conflict.
  • Visual Shortcode Builder (Premium): build [gravops_search] shortcodes with a point-and-click UI. Pick forms, add filters by ID, label, or type, choose a simple field list or a block-based template, see the live shortcode with validation hints, run it against your real entries, and save it.
  • Saved Shortcodes library (Premium): name and save shortcodes from the builder, then copy, reopen in the builder, or delete them from a dedicated tab.

How It Works

GravityOps Search reads your shortcode attributes and content to decide which entries to fetch, then formats each match according to the display attribute. target sets which forms to query: 0 for all forms, one form ID, or a comma-separated list. search lists the field IDs and entry properties to filter on, and the shortcode content supplies the matching values, separated by | in the same order.

search_mode sets the matching logic. The default, `all`, requires every condition to match; `search_mode="any"` returns entries that meet at least one. To search every field for a value, leave that position's search ID blank.

Sorting, limiting, and uniqueness are applied after the search conditions. sort_key accepts a field ID, entry property, or meta key, and sort_direction accepts ASC, DESC, or RAND. sort_is_num makes numeric values compare as numbers. secondary_sort_key and secondary_sort_direction set a second ordering, for example by date and then by name. limit then sets how many entries are returned, and unique removes duplicates based on the rendered output.

default sets text to show when no entries are found or when a displayed field is empty; separate several defaults with `||` to map them to several display fields. `separator` sets how entries are joined, so you can build line-separated lists, `<li>` items, or table rows. Each `[gravops_search]` shortcode runs its own live query, so different instances can show different views of the same data.<h3>Display and Formatting</h3>

The display attribute controls the output. In its simplest form it takes a comma-separated list of field IDs or entry properties, such as display="13,14,15", and outputs those values in order for each matching entry. This suits raw values such as a list of email addresses or IDs.

For more control, display accepts a template with placeholders, such as display="Name: {13}, Email: {14}", rendered once per entry. {13} inserts field 13, and {id} and {form_id} insert entry properties. Where standard merge tags are also parsed (GravityView content fields, confirmations, notifications), use {gos:id} to avoid conflicts. {gos:id;fallback} sets a default for a single placeholder.

display also accepts HTML, including tags, attributes, and CSS classes. Wrap values in `<div>`, `<span>`, `<ul>`, `<li>`, `<a>`, or table markup to build lists, tables, or cards. Because `separator` accepts HTML too, each entry can become one list item, table row, or card that matches your theme.<h3>Nesting Shortcodes and Advanced Templates</h3>

To nest another shortcode inside display, wrap it in double curly braces: {{ ... }}. This works for GravityMath, another gravops_search, or any shortcode. The outer [gravops_search] replaces its own placeholders first, then runs the nested shortcodes, so entry values can feed calculations or secondary lookups.

When you nest a second gravops_search, each shortcode runs its own search in sequence. The outer shortcode resolves placeholders such as {13} and {gos:id} in its template, and the nested one uses its own attributes. To pass a value into another shortcode’s attribute, use gos:id without braces (for example, gos:21) to avoid merge-tag parsing conflicts.

For example, one [gravops_search] can list matching entries, a nested one can pull related entries, and a GravityMath shortcode can compute totals, all inside your own HTML.

Search Operators and Multi-Input Fields

The operators attribute sets how each search value is compared to its field. It is a comma-separated list that lines up with the search fields: search IDs first, then search_label entries, then search_type entries. Supported operators are = or is, !=, isnot, or is not, contains, like, in, not in, and the numeric gt, lt, gt=, and lt=. Fields without an operator use an exact match.

With in or not in, pass a list in the shortcode content, such as array('item one','item two','item three'), to test whether the field value is in that list.

Multi-input fields (Name, Address, Checkboxes) behave differently for display and search. For display, the base field ID ({13}) combines all inputs into one string separated by spaces, and an input ID ({13.3}) shows a single input. For search, use the base field ID for checkboxes, and the individual input IDs (such as 13.3 or 13.6) for Name and Address fields; searching Name or Address by the base ID does not work.

Performance and Access Control

Every [gravops_search] shortcode runs a live database query. limit="all", deep nesting, and large multi-form searches can slow page loads. Set a reasonable limit, avoid unnecessary nesting, and consider page caching for data-heavy pages.

The shortcode does not check permissions. Anyone who can view the page sees whatever entry data you choose to display, including personal data. Place shortcodes that show private data on pages protected by a membership plugin, password protection, or role-based visibility.

Community Help

For how-to questions and examples of what others have built, visit the GravityOps Help community.

If you opened a support thread on WordPress.org, continue that conversation there. The community is an additional place for help and ideas.

External services

Searches run against your own database. Your entries and search terms are never sent anywhere.

The plugin connects to outside services only in these cases:

  • GravityOps product catalog. When an administrator uses the WordPress admin (or shortly afterwards, through WP-Cron), the shared GravityOps library downloads the GravityOps product catalog (names, versions, icons, links and announcements) from brightleafdigital.io, at most about twice a day. The request sends no personal data or site content; like any web request, it reveals your server’s IP address.
  • Newsletter signup. Only if you choose to subscribe to GravityOps Weekly, the email address you enter is sent to brightleafdigital.io.
  • Feedback prompts. Only if you choose to answer the short GravityOps survey or open the review prompt, your answers, or the plugin and version being reviewed, are sent to brightleafdigital.io.
  • Support access. Only if you grant BrightLeaf Digital support access, TrustedLogin creates a temporary login and notifies BrightLeaf Digital through TrustedLogin and brightleafdigital.io.
  • Freemius. Licensing and updates for the premium version run through Freemius. In the free version, Freemius receives information only if you opt in when activating the plugin: your name and email address, your site’s URL, your WordPress, PHP and plugin versions, and plugin events such as activation and deactivation. You can skip the opt-in and the plugin works the same.

BrightLeaf Digital: Privacy Policy. TrustedLogin: Authorized User Terms, Privacy Policy. Freemius: Terms, Privacy Policy.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums