Output a Wordpress custom field in the text editor -
i have created custom field in wordpress page: eg-custom-link
i output value of in wordpress editor (not in php template) if wanted echo in php template use:
<?php $key="eg-custom-link"; echo get_post_meta($post->id, $key, true);?>
... in instance output custom field using wordpress text editor.
i ended using following plugin echo custom field: https://wp-types.com/home/custom-fields-shortcodes/
Comments
Post a Comment