[su_meta key="mood" post_id="1"]

Description

This shortcode allows you to display custom field values.

Options

Option namePossible valuesDefault 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. Name of your function must include word filter. Example function:
function my_custom_filter( $value ) {return 'Value is: ' . $value;}
Any text value– none –