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?

#1123
Tom
Keymaster

Hmm, you could try this:

function wpsp_social_sharing_shortcode() {
    ob_start();
    echo get_the_title() . wpsp_social_sharing( get_the_ID(), $twitter = true, $facebook = true, $googleplus = true, $pinterest = true, $love = true );
    wp_enqueue_script( 'wpsp-love-it' );
    $output_string = ob_get_contents();
    ob_end_clean();

    return $output_string;
}
add_shortcode( 'xxx_wpsp_social_sharing', 'wpsp_social_sharing_shortcode' );