| 开发者 |
eitanatbrightleaf
freemius |
|---|---|
| 更新时间 | 2026年11月17日 23:06 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 |
| 版权网址: | 版权信息 |
[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 |
[gravops_search] shortcode with the attributes you need.No. Searching, filtering, and output are all set with shortcode attributes. Premium adds a Visual Shortcode Builder so you can build the shortcode without writing its syntax by hand.
No. GravityOps Search does not change the admin Entries screen. It is built for the front end: you place a shortcode on a page, post, or view, and it displays matching entries the way you format them.
Use the [gravops_search] shortcode. Set which forms to target, which fields or entry properties to search, the values to match, and how to output the results. The shortcode runs a live query and prints the results anywhere shortcodes are supported.
Yes. Pass a comma-separated list of form IDs in the target attribute, or use target="0" to query every form on the site. If the same kind of field has different IDs on each form, use search_label or search_type with search_mode="any".
Yes. The search attribute accepts a comma-separated list of field IDs or entry properties. The shortcode content supplies the values, separated with a pipe (|) in the same order. You can mix fields, entry properties, and entry meta.
Use the operators attribute to set the comparison for each field: exact match, not equal, contains, like, numeric greater than / less than, and in or not in lists. Fields without an operator use an exact match.
Yes. By default every condition must match. Set search_mode="any" to return entries that match at least one.
Use the display attribute. It accepts:
{15} or {id}.Yes. The display template supports text, HTML tags, attributes, classes, and any number of placeholders, so results can match your theme.
Yes. Wrap nested shortcodes in {{ ... }}. You can nest GravityMath, another [gravops_search], or any shortcode that outputs text or numbers. Nested shortcodes receive the already-replaced values, which allows chained lookups and calculations.
Yes. For display, use the base field ID ({13}) for the combined value or an input ID ({13.3}) for one input. For search, match checkboxes by the base field ID and other multi-input fields by their input IDs.
Yes. Set search_empty="true" and leave the value for that position empty in the shortcode content. This finds incomplete submissions or missing data.
Yes. Use sort_key, sort_direction, and sort_is_num, plus secondary_sort_key and secondary_sort_direction for tie-breaking. For random order, use sort_direction="RAND".
Yes. Set limit to a number, or limit="all" to show every match. The default is 1. Combined with sorting, this shows the newest, oldest, largest, or smallest results.
Yes. unique="true" removes duplicate results after formatting, which is useful for lists of unique emails, product IDs, or user names.
Set fallback text with the default attribute. It is shown instead of an empty result.
No. It displays whatever you ask it to, and anyone who can view the page sees that data. Put shortcodes that show personal data on pages protected by a membership plugin or role-based access.
Each shortcode runs a live database query. Normal use is fast, but large multi-form searches, deep nesting, or limit="all" on big forms can slow a page. Use reasonable limits and consider page caching.
Yes. You can use the shortcode inside GravityView fields and custom layouts, and nest GravityMath or other shortcodes inside its output.
Yes. The plugin registers its own [gravops_search] shortcode and leaves [gfsearch] alone, so both can run on the same site. Use the snippet for existing shortcodes and [gravops_search] for new builds.