This shortcode allows you to display custom fields values.

This shortcode allows you to display custom fields values.
[su_meta key="demo_description" post_id="1669"]
Option name Possible values Default value
key
Meta key name
Any text value

none

default
This text will be shown if data is not found
Any text value

none

before
This content will be shown before the value
Any text value

none

after
This content will be shown after the value
Any text value

none

post_id
You can specify custom post ID. Leave this field empty to use an ID of the current post. Current post ID may not work in Live Preview mode
Any text value

none

filter
You can apply custom filter to the retrieved value. Enter here function name. Your function must accept one argument and return modified value. Example function:

function my_custom_filter( $value ) {
	return 'Value is: ' . $value;
}
Any text value

none