I’ve done some simple debugging and discovered that the problem is likely to do with how the static array shared_with_posts
is setup in the sharing_display()
function in the sharing-services.php file. For all pages and posts without custom excerpts, the call to isset()
on shared_with_posts
for the post’s ID is returning True when it should be returning False. Additionally, for a reason I’ve yet to track down, the function sharing_display()
is getting called twice — well, it’s getting called twice when there is no custom excerpt. I don’t know how many times it’s getting called on posts with excerpts as my simple echo
debugs are not showing up whenever the post has a custom excerpt and the sharing section is displayed.
Cross-posted from another post on the subject in hopes that someone will solve this.
I agree with kallensource on both counts. Excerpts are optional, so the plugin shouldn’t break without them. This is a surprising oversight since the plugin was developed in part by Automattic!
It is often desirable to add share links to both the top and the bottom of a post. Some people share when they read the headline or first couple paragraphs, others only share once they have read an entire article.
I would add that it is odd to omit Google+/Google Buzz. There isn’t much selection here compared with other plugins.