JavaScript and Pages Feature
-
Actually this might be relevant to all kinds of WP posts.
Thanks to MCincubus (IRC name) I can now use JavaScript to encode my email address and guard against spambots.
I was trying to use Enkoder (Google it) with my contact page created using the pages feature of WP 1.5 with now luck.
Using a misc.php plugin MCincubus suggested this code:
<?php
/*
Plugin Name: Misc
Version: 1
Description: A bunch of miscelaneous stuff
Author: Me
*/add_action('wp_head', create_function('$a', 'if(is_page("your-page-name-here")) remove_filter("the_content", "wpautop");'));
?>There is one caution though:
You will have to add your own tags to any page you name in the plugin.Hope that helps. Did wonders for me.
Ciao
The topic ‘JavaScript and Pages Feature’ is closed to new replies.