WordPress : Remove Podpress code from the_excerpt

Add the following to functions.php

add_action('pre_get_posts', 'remove_podpress_from_automatic_excerpts');
function remove_podpress_from_automatic_excerpts() {
	/* This function removes podPress elements from post content on the homepage of the blog. It helps especially if the home page shows only excerpts of the posts.*/
	if ( is_home() ) {
		global $podPress;
		if ( TRUE=== isset($podPress) AND TRUE === is_object($podPress) ) {
			remove_filter('the_content', array(&$podPress, 'insert_content'));


One response to “WordPress : Remove Podpress code from the_excerpt”

  1. Awesome post.

    I searched your post through GOOGLE and found it awesome.

    Master Gurpreet

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: