The site i am working is http://www.nickthepromisering.com/
If you go there you can find that the “the_excerpt” is on.
The main problem is that the “share this” icons are not visble after every posts. but they are visible when we enter into the post
Forexample: In the home page after the post “UFC coming to Calgary??” the share this icon are not visble but they are visible when we enter into that post
That is http://www.nickthepromisering.com/ufc-coming-to-calgary you can see at the end of the post it shows the following line:
Share this:Email Print Facebook StumbleUpon Digg
Now my question is how to show this on the home page after every post.
Please help me in this matter.
Thanks
Somdeb
It’s hard to say without knowing more details. Are you using the sharethis plugin, or manually adding the sharethis code to your template files?
My guess is that you’re using the sharethis plugin and that it’s hooking into
the_content()
which is NOT the same asthe_excerpt()
. I bet if you change your index.php (or whatever template file is getting used for the header) to usethe_content()
the sharethis buttons will appear. If this is the case you have a couple options: 1. you can leave it that way and manually place the “read more” cut-off on a per-post basis. 2. you can keep usingthe_excerpt()
and manually add the sharethis button code after it in your template. It would look something like this…You shouldn’t have to worry about the script because it’s already included by the plugin, but you will want to add a custom link option so that each button doesn’t link to the index page (instead of the homepage). You do that by adding an
st_url
attribute:(More customization options here: http://help.sharethis.com/customization/custom-buttons)
In your case, you’ll almost certainly want to use the permalink as the value:
Hope this helps.
PS: Did Nick’s knee problem get solved after he left TUF?