Hi,
When I apply the PRE html tag to some line of code, STYLE tag vanishes from post.
I want to add code (contains php and html) to my posts.
I heard I have to use the PRE html tag to do this, on some code it works, but the STYLE html tag vanishes and breaks my code.
Here is the code I want to put in the PRE tag :
<?php if (is_single()) {
$css = get_post_meta($post->ID, 'css', true);
if (!empty($css)) { ?>
<style type="text/css">
<?php echo $css; ?>
</style>
<?php }
} ?>
I want the same effect/appearance than above.
How can I allow my WordPress to accept STYLE html tag in the PRE tag ?
Thanks