WordPress.org

Ready to get started?Download WordPress

Forums

Sharedaddy More Control
[resolved] Removal of Sharedaddy in Post Excerpts (22 posts)

  1. cmcdoniel
    Member
    Posted 2 years ago #

    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?

  2. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

    Please try the 0.3 version, there were some problems with 0.2 version regarding proper filtering of selected content.

  3. cmcdoniel
    Member
    Posted 2 years ago #

    I am using version 0.3. Downloaded the plugin yesterday...

  4. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

    Can you give me a link I need to check the theme and/or maybe the theme locations? Or if that is an free theme, a download link.

    Thanks.

  5. cmcdoniel
    Member
    Posted 2 years ago #

    Here's the theme we are using:
    http://themeforest.net/item/wpa-parade-theme/47390

    Here's our site:
    http://offtoneverland.com

    I don't have the plugin turned on right now as it messes up the index page (even without selecting index pages in Sharedaddy) due to the excerpt problem.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    As this is a commercial theme, we cannot really help. You need to seek support from the theme vendors.
    Themeforest Support: http://themeforest.net/forums/topic/themeforest/themeforest

  7. cmcdoniel
    Member
    Posted 2 years ago #

    We just won't use your plugin...I would have hoped for support based on the plugin, but I'm sure another plugin will work.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Whose plugin? I'm not the plugin's developer but a forum mod.

  9. cmcdoniel
    Member
    Posted 2 years ago #

    Stas Suscov is the plugin's developer. He and I have been posting back and forth.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Because you are using a commercial theme with it's own support forum.

  11. cmcdoniel
    Member
    Posted 2 years ago #

    So I can't talk to the plugin's developer on this forum as he and I have already been doing?

  12. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Of course you can. But no one on the forums can access that theme as it's a commercial theme. So the support that you might receive could be limited by that lack of access.

  13. cmcdoniel
    Member
    Posted 2 years ago #

    Thanks. I'll keep talking to the plugin's developer and go from there.

  14. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

    I'm afraid @esmi is right.
    Another reason would be that sharedaddy itself hooks into a post action/filter, and it is likely doing it wrong since you get sharing options printed inside excerpts.

    If you can confirm this happening with WordPress default theme, I will happily check it.

    Thanks.

  15. cmcdoniel
    Member
    Posted 2 years ago #

    I'll try to test that out on the default theme and let you know.

  16. badMike
    Member
    Posted 2 years ago #

    Hello,

    I've recreated the problem that cmcdoniel first reported. It's not a problem with a bad theme, as I did it with my own theme as well as theme Twenty Eleven, although with an edit to modify the site's header meta description.

    Here's the issue:

    1. I have the most recent version of Sharedaddy activated.

    2. In the header, in defining the meta description, I'm using this code:

    <meta name="description" content="<?php if ( is_single() ) : ?><?php the_excerpt(); ?><?php else : ?>General site description<?php endif; ?>" />

    3. In the output in a post header, I get the single post excerpt, plus the Sharedaddy code, e.g.:

    <meta name="description" content="Single Post Description<div class="snap_nopreview sharing robots-nocontent"><ul><li class="sharing_label">Share this:</li><li class="share-facebook share-regular"> etc." />

  17. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

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

  18. badMike
    Member
    Posted 2 years ago #

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

  19. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

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

    Thanks.

  20. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

    Okey,
    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.
    Explanation.

    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.

  21. badMike
    Member
    Posted 2 years ago #

    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.

  22. Stas Su?cov
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic