WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Code Embed

Code Embed provides a very easy and efficient way to embed code (JavaScript and HTML) in your posts and pages.

Code Embed allows you to embed code - JavaScript and HTML primarily - in a post. This is incredibly useful for embedding video, etc, when required and is used, amongst other, by Mozilla. It cannot be used for server side code, such as PHP.

Features include..

  • Add HTML or JavaScript to posts or pages - particularly useful for embedding videos!
  • Embed in widgets using the Widget Logic plugin
  • Global embedding allows you set up some code in one post or page and then access it from another
  • Modify the keywords or identifiers used for embedding the code to your own choice
  • Search for embedding code via a simple search option
  • Add a simple suffix to the embed code to convert videos to responsive output
  • Embed an external script directly using just the URL
  • Fully internationalized ready for translations. If you would like to add a translation to his plugin then please let us know via the plugins' forum

Here's how easy it is...

  1. Once you have the plugin installed start a new post or page.
  2. In the Custom Fields meta box enter a name of CODE1 and your embed code as the value. Save this.
  3. In your post add %CODE1% where you wish the embed code to appear.

And that's it - when the post or page is viewed %CODE1% will be replaced with the code that you asked to be embedded.

This should get you started - for more information and advanced options please read the "Other Notes" tab.

Although this plugin works for both posts and pages for simplicity I will simply refer to posts - bear in mind that pages work in the same way.

Requires: 3.3 or higher
Compatible up to: 3.8.3
Last Updated: 2014-4-3
Downloads: 42,983

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,2,2 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1
50,2,1
100,1,1
100,1,1
100,1,1 100,1,1
100,2,2 100,1,1
100,1,1
0,1,0
0,1,0