[post_meta]

Displays post meta field value.

Attributes

key
(required) Post meta key to retrieve.
Default: None
post_id
(optional) Post ID. If not set – current post ID is used.
Default: None
array_glue
(optional) If resulting value is an array, it’s “glued” with PHP implode() function (http://php.net/manual/en/function.implode.php). You can set function’s glue argument here.
Default: ,

Examples

Example

Display total sales for product in WooCommerce based shop:

[post_meta key="total_sales" before="Total sales: "]

No comments yet.

Leave a Reply