Home › Forums › Pro Support › WPSP Social Icons (class="wpsp-social") shortcode? › Reply To: WPSP Social Icons (class="wpsp-social") shortcode?
November 25, 2016 at 1:56 am
#1101
Participant
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' );
endif;
}