Skip to main content

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.

ProductGravity Forms
RequiresGravity Forms 1.9 or later
In the pickerWhat to show, for Post category fields
CombiningUse 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=2

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutputWithout the modifier
{Category:7:id}2Baked Goods

Works on

Form fields: Post category.