mbr_permalink
Usage
This shortcode returns the permalink (URL) of the current or specified page, post or custom post type.
Parameters
Parameters | Description |
---|---|
post_id | Specifies the WordPress page or post ID whose permalink (URL) is to be retrieved. Default: Current page/post. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
This shortcode does NOT support conditional branching with [ELSE_permalink].
Nesting
Shortcode nesting within is NOT supported.
Examples
- Example 1
- Example 2
Will return the URL of the current page/post:
[mbr_permalink]
Will return the URL of the page/post with id 1234:
[mbr_permalink post_id='1234']
API
info
There is currently no ActiveMember360 API function equivalent for this shortcode. Please use the regular WordPress function get_permalink.