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.
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”.
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.”