Title: How to echo code into html elements
Last modified: June 6, 2017

---

# How to echo code into html elements

 *  [solamichealolawale](https://wordpress.org/support/users/solamichealolawale/)
 * (@solamichealolawale)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/how-to-echo-code-into-html-elements/)
 * Hi Admin,
    I have a code written in php e.g. <?php echo(“hello world”); ?> In
   my text editor on my word press page i have a text box that i want the value 
   to be the output of my code e.g. <input type=”text” value='[wce_code id=4]’ /
   > where [wce_code id=4] is the shortcode for my php code.
 * Please help on how to go about that

The topic ‘How to echo code into html elements’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-css-js-php.svg)
 * [Custom css-js-php](https://wordpress.org/plugins/custom-css-js-php/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-css-js-php/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-css-js-php/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-css-js-php/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-css-js-php/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [solamichealolawale](https://wordpress.org/support/users/solamichealolawale/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/how-to-echo-code-into-html-elements/)
 * Status: not resolved