• Resolved JMoe

    (@jmoe)


    I searched for a while to see if anyone else is having the same problem as me, and I couldn’t seem to find any posts about this. For some reason, my post excerpts with podcasts in them are showing the player AND the code/html for it above the player.

    I have it set to display the podcast player on excerpts, which is fine, but I do not want the html/code showing up in the excerpts as well.

    I’ve tried only displaying the player in content sections, which does not take away the html from the excerpts, it only removes the player. I’ve also tried setting “No” to the <!- More -> tag.

    When you click on the specific post, though, the player shows up great, and there is no html/code to see on the post. This only occurs on the excerpts.

    Any help would be greatly appreciated! Thanks!

    http://wordpress.org/extend/plugins/podpress/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author ntm

    (@ntm)

    Please, post the code which should not be visible. or is it possible that I can take a look at a page of your blog which shows this problem?

    It could also be helpful to know the name of your theme.

    Tim

    Thread Starter JMoe

    (@jmoe)

    Sure, you’ll see the code on our front page, the theme is “Motion” and website is http://www.donmoenandfriends.org/

    Thanks!

    Plugin Author ntm

    (@ntm)

    Yes, I can see the problem. I have installed the theme in my test blog. But so far I could nod reproduce the situation. That is why I think one of your other plugins could be involved.

    Do you use other plugins which customize the post or excerpt content?
    Which plugins do you use?

    Thread Starter JMoe

    (@jmoe)

    Thanks for the help! Here is a list of the plugins that I use:

    AddThis Social Bookmarking Widget
    Akismet
    All In One SEO Pack
    Audio Player
    Contact Form 7
    Email Before Download
    Exclude Pages from Navigation
    Flickr Manager
    GigPress
    Maintenance Mode
    Page Links To
    Page Lists Plus
    podPress
    Polldaddy Polls & Ratings
    Shopp
    TubePress
    Twitter for WordPress
    WordPress.com Stats
    WordPress Database Backup
    WordPress Download Monitor
    WP-Email
    WP Download Codes

    Plugin Author ntm

    (@ntm)

    Which of the Shopp plugins? (There is more than one with Shopp in the name.)

    Thread Starter JMoe

    (@jmoe)

    I couldn’t seem to find it in the WordPress plugins either. It’s the main eCommerce plugin off of their website https://shopplugin.net/

    Let me know if this helps. I believe when I installed it, they just gave me the Shopp plugin folder to upload.

    Plugin Author ntm

    (@ntm)

    Okay. Thank you. I will do some tests with the other plugins first.

    Plugin Author ntm

    (@ntm)

    I have installed almost all of the above plugins and the uncustomized Motion theme and I could not reproduce this problem.
    This means that it is e.g. the WordPress Flickr Manager plugin which I could not download or one of the other plugins with certein settings I could not try (because e.g. I have no Polldaddy acount) or a customization of the theme causes this.

    What I know is that this problem is most likely caused by a call of the function get_the_excerpt(), the_content() or the_excerpt() (or by the usage of the WP Filter Hooks the_content or the_excerpt).
    But in order solve the problem it necessary that I/we can determine better what is interefering with podPress.
    Because I can not reproduce the effect it would be great if you could do some testing.
    The one big question is: is it caused by the theme or by one of the other plugins.
    It would be great if you could activate the Maintenance Mode for a moment and deactivate one plugin after another and check after the deactivation of each plugin whether something has changed.
    Start with Polldaddy, WP Download Monitor, Gigpress and Tubepress.
    Afterwards you can activate the plugins again.
    If none of the plugins causes this interference then it is the customized version of the theme.
    Does the e.g. the header.php, the index.php or home.php file contain get_th_excerpt()? Does any other php file of the theme contain this function call?

    Do you whether the content of the posts in the Recent News column is displayed by the_excerpt() or the_content()?
    If it is displayed by the_excerpt() then you could try to write an excerpt manually – basically copy&paste the first sentence of a post into the excerpt field below the post editor (you may nneed to make it visible first – see the Screen Options in the upper right corner of your admin screen).

    Thread Starter JMoe

    (@jmoe)

    Hey Tim,

    Thanks for your response! I apologize for the delay. I managed to start deactivating plugins 1 by 1 and it seems that AddThis Social Bookmarking Widget is the problem plugin! When I deactivate it, it works great. People use this plugin quite a bit, is there any way that we can keep using the plugin and fix the problem?

    Plugin Author ntm

    (@ntm)

    Thank you for doing the tests.

    Yes, you can use both plugins at the same without having this issue:

    If you don’t want to show the social network icons on the homepage then there is quick solution. Deactivate the Advanced option “Show on homepage”. Your homepage shows excerpts of the posts and you have probably already deactivated the option “Show in excerpts”.

    Another solution would be to add some additional code to the functions.php file of your theme:

    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'));
    		}
    	}
    }

    This code will remove the podPress code from the post content on the homepage. This is no problem in cases like yours where the blog homepage shows only excerpts of the posts.

    Thread Starter JMoe

    (@jmoe)

    Yes! The code works perfectly. Everything seems to be working great. Thanks for your help, Tim!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘podPress excerpts showing code/html and player’ is closed to new replies.