Support » Fixing WordPress » linked in share button not showing post content
4 years, 7 months 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="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.