stormymondays
Member
Posted 2 weeks ago #
I was wondering if there's a way to exclude inserting Sociable when showing post excerpts.
I have a slightly complex configuration. My front page is powered by Wordpress and shows a post extract, but the actual blog is in a subdirectory. If I check the "Front page of the blog" option, it shows on both the front page (where I don't want it) and the blog.
I've solved it by adding Sociable manually into the index.php template, but if I had an option to disable Sociable for post extracts, that would do it for me :)
http://wordpress.org/extend/plugins/sociable/
sociable
Member
Posted 1 week ago #
stormymondays: Would you please explain a little further or send us screenshot(s) or a URL to check? Regards.
stormymondays
Member
Posted 1 week ago #
Sorry, it's a complex issue. Some URLs will hopefully explain it:
Home page: http://www.stormymondays.com/
Actual blog: http://www.stormymondays.com/rainydays/
It's a Wordpress page that also has an extract from the latest post blog on the right column. It's created with the_excerpt();
If I activate Sociable for the home page, the sociable icons get added to the excerpt in the home page, which I don't want. If I don't, the icons don't get added to the actual blog.
I was thinking that the solution would be to have Sociable add its icons only to full posts and not to excerpts.
Am I making sense now?
sociable
Member
Posted 1 week ago #
stormymondays: Can you explain to us a little bit more how you're generating the homepage with the excerpt function? Regards
stormymondays
Member
Posted 1 week ago #
I'm creating another loop outside of the Wordpress loop.
The second loop uses query_posts to get the post that I want, and then it's just the_title, the_excerpt and the_permalink.
sociable
Member
Posted 6 days ago #
stormymondays:
Try commenting this line (#915) on sociable.php so it doesn't hooks with the excerpt:
add_filter('the_excerpt', 'sociable_display_hook');
Regards.
stormymondays
Member
Posted 3 days ago #
Thanks. It would be great if instead of hacking the script, you could add it as an option to a future release. :)
sociable
Member
Posted 3 days ago #
stormymondays: We'll take note of your suggestion :-) Thanks!