The Custom Field Embedder plugin for WordPress provides the capability to embed custom field values into pages and posts through a simple shortcode. It is a lightweight plugin that does not require any configuration, settings, scripts, or external resources to function. Any value supplied in a custom field is embedded in the page or post including text, HTML, JavaScript, etc.
Simply add the shortcode custom_field_embedder
with the attribute custom_field_name="CUSTOM FIELD NAME"
to a new or existing page or post. Replace "CUSTOM FIELD NAME"
with the actual name of a custom field associated with the page or post and the value of that custom field is embedded at that position in the page or post.
Usage
Step 1 – Create Custom Field
The custom field EXAMPLE CUSTOM FIELD
is added to a post with the value “The quick brown fox jumps over the lazy dog.”

Step 2 – Add Shortcode
The custom_field_embedder
shortcode is added to the post with the attribute custom_field_name
set to "EXAMPLE CUSTOM FIELD"
.

Result
When the post is viewed, the shortcode is replaced with the value from the supplied custom field. In this instance, we see the text “The quick brown fox jumps over the lazy dog.”
