Skip to main content

i4w_permalink

Usage

This shortcode returns the permalink of the current page or post if no ID is specified or that of another page/post if an ID is provided.

[ELSE_permalink] conditional branching is NOT supported.

Shortcode nesting is NOT supported.

Parameters

ParameterDescriptionDefaultRequired
post_idSpecifies the WordPress page or post ID whose permalink (URL) is to be retrieved.current page/postNo

Example

Shortcode
[i4w_permalink]
Shortcode
[i4w_permalink post_id='1234']