linked in share button not showing post content (1 post)

  1. captaincainer
    Posted 4 years ago #

    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="http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic