Skip to main content

Merge tag {current_post:PROPERTY}

Current post. A property of the post being viewed. Unlike {embed_post}, it also works on archive pages.

On the test entry, {current_post} gives http://fixture.gravitykit.test/?page_id=1883.

ProductGravityView
RequiresGravityView 1.21.5 or later
Needs an entryNo

Parameters

NameTypeRequiredDefaultDescription
Post propertytextNopermalinkAny property of the post being viewed. The list shows common ones; others work too.

Values for Post property

ValueDescription
permalinkPermalink (default)
IDPost ID
post_titleTitle
post_nameSlug
post_authorAuthor ID
post_datePublished date
post_excerptExcerpt

Other values are accepted too.

Examples

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

Merge tagOutput
{current_post}http://fixture.gravitykit.test/?page_id=1883
{current_post:permalink}http://fixture.gravitykit.test/?page_id=1883
{current_post:ID}1883
{current_post:post_title}Contact us
{current_post:post_name}contact-us
{current_post:post_author}2
{current_post:post_date}2026-01-14 12:00:00
{current_post:post_excerpt}Send us a note and we will reply within a day.