Skip to main content

Merge tag {get:PARAM}

URL query parameter. A value from the page URL. Several values are joined with ", ". Escaped with esc_html() by default.

On the test entry, {get:search} gives rocket science.

ProductGravityView
RequiresGravityView 1.15 or later
Needs an entryNo

Parameters

NameTypeRequiredDefaultDescription
Query parameter nametextYes—The parameter's name, not its value: on a page ending ?search=widgets, {get:search} shows widgets.

Examples

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

Merge tagOutput
{get:search}rocket science