Title: Custom fields help!
Last modified: August 19, 2016

---

# Custom fields help!

 *  [banica](https://wordpress.org/support/users/banica/)
 * (@banica)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/)
 * We have some custom fields in our site that enable the users to add pictures 
   and video their posts like this:
    [http://voodooheadstv.com/vault/pc/left-4-dead-2-the-passing-dlc/](http://voodooheadstv.com/vault/pc/left-4-dead-2-the-passing-dlc/)
   The problem is that they can use ANY html code in both of the fields and cause
   problems like: [http://voodooheadstv.com/blogs/aktualizaciq-na-game-inga/](http://voodooheadstv.com/blogs/aktualizaciq-na-game-inga/)
   Is there a way to fix this?The picture thing uses thimthumb and the other just
   uses the embed html from youtube and streaches it inside the Видео box.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1538775)
 * Maybe run strip_tags on the custom field value before using it in your code/templates?
 * [http://uk3.php.net/manual/en/function.strip-tags.php](http://uk3.php.net/manual/en/function.strip-tags.php)
 *  Thread Starter [banica](https://wordpress.org/support/users/banica/)
 * (@banica)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1538780)
 * I have no idea how this will work.The video custom field uses the code from youtube
   if i block html will it still work?
 *  Thread Starter [banica](https://wordpress.org/support/users/banica/)
 * (@banica)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1538783)
 * Is there a site to explain how to use these strip_tags the info you gave me looks
   very confusing.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1538900)
 * The link I gave is THE page on explaining how to use the strip_tags function.
   It does include a few examples.
 *  Thread Starter [banica](https://wordpress.org/support/users/banica/)
 * (@banica)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1538922)
 * well i do see alot of code and i think i understand how it works.The bad thing
   is that im not so good with WP and i dont even know where to put the code and
   how to use it.I have a feel the video section on my site will stop working if
   i disable HTML :/
 *  Thread Starter [banica](https://wordpress.org/support/users/banica/)
 * (@banica)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1539017)
 * Im using the “custom field template” plugin and here is my custom field setting
   for my image custom field:
    [image_value] type = text size = 60 label = Картинка:
 * here you can see that people can embed html in the custom field resulting in 
   silly effects [http://voodooheadstv.com/blogs/aktualizaciq-na-game-inga/#comment-128](http://voodooheadstv.com/blogs/aktualizaciq-na-game-inga/#comment-128)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Custom fields help!’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [banica](https://wordpress.org/support/users/banica/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-help-3/#post-1539017)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
