Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WPSP Social Icons (class="wpsp-social") shortcode? Reply To: WPSP Social Icons (class="wpsp-social") shortcode?


Hi Tom, yes exactly. I want to take social_sharing from WPSP and place it in a single post.

I’ve tried, it does not work. I’m not a good coder, sorry 🙁 can you help me please?

What am I doing wrong?

add_shortcode( 'wpsp_social_sharing', 'wpsp_social_sharing_shortcode' );
function wpsp_social_sharing_shortcode() { 
	if ( $social_sharing && function_exists( 'wpsp_social_sharing' ) ) :
		echo wpsp_social_sharing( get_the_ID(), $twitter = true, $facebook = true, $googleplus = true, $pinterest = true, $love = true, $social_sharing_alignment = 'left' );
		wp_enqueue_script( 'wpsp-love-it' );