Modifier :id
Category ID instead of the name. Example: {Topic:114:id} gives 2. On the test form, this field is {Topic:114} (Post category).
About
Use it alone on checkboxes, radio buttons, or a drop down; a multi select allows other modifiers.
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 1.9 or later |
| In the picker | What to show, for Post category fields |
| Combining | Use it alone. With other modifiers, it is ignored. |
How to use it
Link to the chosen category
The category ID, for building a link.
Write
https://example.com/?cat={Category:7:id}Get
https://example.com/?cat=2Examples
Output from the real plugin code, run on a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Category:7:id} | 2 | Baked Goods |
Works on
Form fields: Post category.