Jump to content
Sign in to follow this  
remcobronsomanythoughtsnl

Who can help me find the bug in my LinkedIn shareArticle code?

Recommended Posts

remcobronsomanythoughtsnl

Hi guys, I'm trying to put in a LinkedIn shareArticle link so people can click the LinkedIn icon and it returns a ready to share article for their LinkedIn page. Using the code below I have most of it working except for the summary. Right now it returns the excerpt on the page and in the HREF of the button. Now this might be something simple as I'm not a programmer by trade. I use the following:

&title=<?php echo urlencode( strip_tags(get_the_title($post->ID)) );?>&summary=<?php the_excerpt(); ?>&source=BBart.nl;" title="<?php _e('Share on','pagelines');?> LinkedIn" rel="nofollow" target="_blank">/ico-linkedin.png" alt="LinkedIn" />[/code]

Can anyone put me on the right track about what I'm dong wrong? Thanks, Remco

Share this post


Link to post
Share on other sites
cmunns

Try and re-post the code portion using backticks (above the tab key) it's cut off at the moment.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×