WordPress Social Sharing Icons – Custom Placement

Here is a quick shortcode for you. You’ll still have to style it the way you want it.
Just use:[social-share] to share.

// social sharing shortcode, use [social-share]
add_shortcode( 'social-share', 'render_social_share' );

function render_social_share( $atts ){

    $social_output="<p>Share on:</p>
    <ul>
        <li><a href="https://www.facebook.com/sharer/sharer.php?u=" . get_the_permalink() . '" target="_blank">Facebook</a></li>
        <li><a href="https://twitter.com/share?text=" . get_the_title() . "&url=" . get_the_permalink() . "" target="_blank">Twitter</a></li>
        <li><a href="https://www.linkedin.com/cws/share?url=" . get_the_permalink() . "" target="_blank">LinkedIn</a></li>
    </ul>';

    return $social_output;

}


error code: 523