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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -