• I have been trying to implement a “linked in share button” to my wordpress site and failing at getting the content to be shared.

    this is my current code:

    <script type="text/javascript" src="https://platform.linkedin.com/in.js"></script>
    <script type="in/share" data-url="<?php echo get_permalink($post->ID); ?><?php echo the_excerpt(); ?>" data-counter="right" ></script>

    This only adds a link to the blogs main url not the post or an excerpt.

    any help or ideas would be greatly appreciated.

  • The topic ‘linked in share button not showing post content’ is closed to new replies.