Title: embedding through functions.php weird issue
Last modified: August 19, 2016

---

# embedding through functions.php weird issue

 *  [jasonday](https://wordpress.org/support/users/jasonday/)
 * (@jasonday)
 * [15 years ago](https://wordpress.org/support/topic/embedding-through-functionsphp-weird-issue/)
 *     ```
       //Address
       add_action( 'woo_post_inside_before', 'my_address' );
       function my_address() {
           global $post;
       if ( is_single() && in_category('listings') ) {
               echo more_fields('address', '<h1>','</h1>');
              }
       }
       ```
   
 * I used this in my functions.php to output my custom field. It outputs as an h1
   and is the correct value, however the value is then followed by a “1”. This is
   true no matter what field I call, they are all followed by a “1”.
 * Any thoughts on this weirdness

The topic ‘embedding through functions.php weird issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/more-fields.svg)
 * [More Fields](https://wordpress.org/plugins/more-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/more-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/more-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/more-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/more-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/more-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jasonday](https://wordpress.org/support/users/jasonday/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/embedding-through-functionsphp-weird-issue/)
 * Status: not resolved