The wpssorrssb_get_sharing_buttons()
function can include social sharing buttons anywhere in your theme template files. As an example, the following PHP code includes Facebook and Twitter sharing buttons from within a loop, post, or page (the global $post->ID
must be available):
1 2 3 4 5 6 |
<?php if ( function_exists( 'wpssorrssb_get_sharing_buttons' ) ) { echo wpssorrssb_get_sharing_buttons( array( 'facebook', 'twitter' ) ); } ?> |
The sharing button names for the array can be:
- tumblr
- vk