Resolving Weird Output in Excerpt
-
Over time, I’ve received multiple reports of conflicts with plugins that filter
the_excerpt
, in particular, Digg Digg and PodPress. An attempted fix for this was made in v1.2.4 but caused more problems than it solved. They were rolled back in v1.2.5.In the long run, it’s not feasible to add a compatibility fix for every plugin that modifies
the_excerpt
and the plugins could likely prevent these problems from occurring in the first place.I’ll try to update this thread with fixes for known compatibility issues.
Unless otherwise noted, put the following code snippets in
functions.php
or an mu-plugin. Avoid modifying plugin files at all costs so you can take advantage of future updates.Digg Digg Compatibility Fix
function play_nice_dd() { remove_filter('the_excerpt', 'dd_hook_wp_content'); } add_action('plugins_loaded', 'play_nice_dd');
PodPress Compatibility Fix
function play_nice_pp() { global $podPress; remove_action( 'the_excerpt', array( $podPress, 'insert_the_excerptplayer' ) ); } add_action( 'plugins_loaded', 'play_nice_pp' );
- The topic ‘Resolving Weird Output in Excerpt’ is closed to new replies.