Hello!
I have installed the plugin Simple Social to add twitter and facebook widgets to the posts on the site I'm designen. The posts is supposed to be news so I've edited the code to make it only show the first 40 words of the post. If i do this I get a bug from the Simple Social plugin if the news is shorter than 40 words. Then it adds the word Tweet to the news.
Example:
News over 40 words
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a … Read more →
News under 40 words
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Tweet
The changes I've made in the plugin is to add the following code in the bottom of the php-file:
add_filter('the_excerpt', 'simple_social');
This i made because the widgets won't show on the index-page unless I do this.
So, does anyone know how to fix this bug?