Title: Adding code to a posts page
Last modified: April 18, 2022

---

# Adding code to a posts page

 *  [jimpett](https://wordpress.org/support/users/jimpett/)
 * (@jimpett)
 * [3 years, 12 months ago](https://wordpress.org/support/topic/adding-code-to-a-posts-page/)
 * I want to add the code snippet to the main posts page so that it is executed 
   there, not within each post.
 * I do not see any content which I can add to on there.
 * The code snippet does execute within the posts as I can add {{CODE1}} and it 
   works.
 * Any help would be geat.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-code-to-a-posts-page%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/adding-code-to-a-posts-page/#post-15579944)
 * I’m not 100% sure what you mean.
 * Are you using a page for displaying your posts and you want to add a snippet 
   to that rather than individual posts? If so, your best bet is to add it as a 
   widget – on a sidebar, header, footer, etc. See the instructions for `EMBEDDING
   IN WIDGETS` for details on how to do this.

Viewing 1 replies (of 1 total)

The topic ‘Adding code to a posts page’ is closed to new replies.

 * ![](https://ps.w.org/simple-embed-code/assets/icon.svg?rev=3073981)
 * [Code Embed](https://wordpress.org/plugins/simple-embed-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-embed-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-embed-code/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/adding-code-to-a-posts-page/#post-15579944)
 * Status: not resolved