For Five Star Rating, the FAQ tells me you can leave out the shortcode from your articles (you added these to each article?), and then use echo five_star_rating_func('star')
somewhere in your template. So this is a nice example of a plugin that offers both options.
For Simple Social, you need to disable the regular hook to the_content
, and then call the function yourself. That could be done with the following code, which you can place in your theme’s functions.php
(or at the top of your single.php
, if you only want it gone on single pages):
remove_filter('the_content', 'simple_social');
Then, to display it again where you want it, you call simple_social()
with an empty content string (be sure to do this in The Loop, since it relies on the global $post
variable):
echo simple_social('');