Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta.
On the frontpage I want the HTML / Javascript to run, not to be displayed.
|
Is there a filter for allowing HTML / Javascript into a custom field textarea? I'm using get_post_meta. On the frontpage I want the HTML / Javascript to run, not to be displayed. |
|||
|
|
The correct answer is Example:
|
|||
|
|
|
I answered an identical question earlier today HERE which tackled the same issue. In the case where you don't want to use a plugin like that suggested by EarnestoDev, you can simply wrap the output of your
Regardless of whether its a |
|||||||
|
|
Use the plugin I posted here: Problem with <code> tag . Does what you need and more! |
|||
|
|
|
Yes, there must be. When you save this into a custom field with a key let's say "test"...
You will get Test1Test2 when you run...
If I knew which filter was responsible for this I'd just do a remove_filter(). It would be great if there was a plugin that would show you what filters are registered to a specific hook. (There is a get_post_meta hook defined in /wp-includes/meta.php) |
|||
|