Title: Adding code to the loop
Last modified: August 21, 2016

---

# Adding code to the loop

 *  [angiegaz](https://wordpress.org/support/users/angiegaz/)
 * (@angiegaz)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/adding-code-to-the-loop/)
 * I was asked to add a LinkedIn “share” button to a website so that blog readers
   can share the content on LinkedIn. If you look at the blog, there’s a “Tweet”
   option at the end of every post.
 * [http://rescignos.com/blog/](http://rescignos.com/blog/)
 * I’ve looked into various widgets and whatnot, but in my experience with this 
   particular theme (and I think there’s something going on with the host) most 
   widgets don’t cooperate well and we end up having to delete them and find another
   option.
 * I found this particular code on WPbeginner.com:
 * <script type=”text/javascript” src=”[http://platform.linkedin.com/in.js”></script><script](http://platform.linkedin.com/in.js”></script><script)
   type=”in/share” data-url=”<?php the_permalink(); ?>” data-counter=”right”></script
   >
 * It SHOULD be a simple add to the loop code, yes? If so, where can I add it in
   the loop so that we get this nifty share button at the bottom of each post?
 * Thanks! I hope this gobbledygook made sense.

The topic ‘Adding code to the loop’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [the-loop](https://wordpress.org/support/topic-tag/the-loop/)

 * 0 replies
 * 1 participant
 * Last reply from: [angiegaz](https://wordpress.org/support/users/angiegaz/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/adding-code-to-the-loop/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
