the_content not working ??
-
Hi team, I’m playing with plugins, and I have this perculiour problem. My plugin code (below) simply adds some text after the post (in this example, it adds code to the Digg button).
The plugin works on my site (www.massyn.net) but it does not work on my other (www.podoza.net).
My question is – what would cause a filter not to fire? Is there a way I can troubleshoot this? I’m working on another filter that will do something similar on the_content, but the same deal — no go… Funny enough though, on the About page the plugin fires, but not on the posts..
Any ideas?? Thanks!
add_filter ('the_content', 'digger_main'); function digger_main ($text) { return $text . ' <script type="text/javascript">digg_url = "' . get_permalink() . '"; digg_title = "' . get_the_title() .'";</script><script src="https://digg.com/tools/diggthis.js" type="text/javascript"></script> '; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘the_content not working ??’ is closed to new replies.