Support » Plugin: Sharedaddy More Control » Removal of Sharedaddy in Post Excerpts

  • Resolved cmcdoniel


    Your plugin is great, however, when I choose Posts Only (which is what I want), your plugin seems to insert the Sharedaddy options into the post excerpts I am using on my home page through the Category Posts Widget. Is there a way to remove those so that the Sharedaddy options only show on the posts themselves rather than the excerpts on my home page?

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author S


    Ok, thanks.
    Does this happens when both plugins are activated or just Sharedaddy?

    I’ve had the problem with both Jetpack activated and with just downloading and activating Sharedaddy separately without Jetpack.

    Plugin Author S


    Oky, so its a Sharedaddy issue.
    I will fix that in my plugin, sharedaddy guys are a bit slow on updates.


    Plugin Author S


    I checked all and here’s the problem.

    First of all, the theme is broken!
    @badmike, your code is also broken!

    Both, Sharedaddy and my plugin has nothing to do with this.

    Themes that are outputting sharedaddy in their theme excerpts are most likely using deprecated get_the_excerpt( $post->ID ) or the_excerpt() out of the loop (like in your case @badmike).

    What they should do is use the_excerpt() inside the loop, or use echo has_excerpt( $post->ID ); out of the loop, and manually apply the_excerpt filter.

    I might be wrong, but with my tests (replace the_content() with the_excerpt() in twentyeleven’s index.php file) all leads to the explanation above.

    Sorry, but I’m closing this for the moment.

    Ah! Thank you! I didn’t get that get_the_excerpt was deprecated from the codex entry. (And no leads to has_excerpt on that page?) I’ll go fix my theme today.

    Plugin Author S


    get_the_excerpt() still exists, but it doesn’t allow arguments anymore, so It can’t be used outside the loops.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Removal of Sharedaddy in Post Excerpts’ is closed to new replies.