WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: simple-embed-code (Used by 5,728 domains)

Code Embed

👤 David Artiss 📦 v2.5.2 🔗 Plugin Homepage

Code Embed allows you to embed code (JavaScript, CSS and HTML – it can’t be used for server-side code, such as PHP) in a post, without the content being changed by the editor. This is incredibly useful for embedding third-party scripts, etc. The plugin is used by many large sites, including Mozilla.

Key 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
  • And much, much more!

Iconography is courtesy of the very talented Janki Rathod.

Please visit the Github page for the latest code development, planned enhancements and known issues

Getting Started

To use this plugin, you need to have custom fields enabled on your site. If you’re using the block editor, you may need to switch this on first – please scroll down to the next section to learn how to do this. If you’re using the classic editor then you’ll find the custom fields at the bottom of the editor screen.

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.

Once you have custom fields switched on, here’s how easy it is to use…

  1. Once you have the plugin installed start a new post.
  2. Scroll down to the bottom of the screen and look for the “Custom Fields” section.
  3. Under “Add New Custom Field” enter a name of CODE1 and your embed code as the value
  4. In your post content add {{CODE1}} where you wish the embed code to appear.

And that’s it – when the post viewed or previewed {{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 see below.. Alternatively, there’s a fantastic guide at Elftronix which I would recommend.

Using this plugin with the block editor (aka Gutenberg)

By default, custom fields are hidden inside the block editor but can be revealed.

  1. Edit or create a post
  2. Click the settings button (three dots) in the top, right-hand corner
  3. Go to Preferences
  4. Click the Panels tab
  5. You will find a button to toggle the ‘Custom Fields’ meta box – make sure this is toggled to “on”
  6. A button should appear titled “Enable & Reload” – you’ll need to click on that and wait for the page to reload before the custom fields will appear

Check out the screenshots for how the custom fields should look.

I can’t find the custom fields

For block editor users, I’m assuming you’ve done the above. For classic editor users, the custom fields should be present by default. In all cases they should appear at the bottom of the editor screen.

From version 2.4, anyone without the “unfiltered HTML” capability won’t be able to see custom fields, for added security. Please see the section “Custom Field Security”, below, for more details.

If none of the above applies then you may have a theme or plugin that removes this or may have a problem with your WordPress installation – you will need to try the usual diagnostics to try and resolve this, including requesting help on the WordPress support forum.

Please bear in mind that the custom fields functionality is part of WordPress so it would be greatly appreciated if you don’t give me poor reviews in this situation as, I say, this component is not part of this plugin but, by using it, keeps this plugin simple to use and bloat-free 🙂

The Code Embed Options Screen

Whilst in WP Admin, if you go to Settings -> Code Embed, you’ll be able to access the options that are available for this plugin.

Code embedding is performed via a special keyword that you must use to uniquely identify where you wish the code to appear. This consist of an opening identifier (some that that goes at the beginning), a keyword and then a closing identifier. You may also add a suffix to the end of the keyword if you wish to embed multiple pieces of code within the same post.

From this options screen you can specify the above identifier that you wish to use. By default the opening and closing identifiers are percentage signs and the keyword is CODE. During these instructions these will be used in all examples.

The options screen is only available to those that with a capability of able to manage options or greater. All the other Code Embed menu options are available to users with a capability to edit posts or greater.

How to Embed Code

To embed in a post you need to find the meta box under the post named “Custom Fields”. If this is missing you may need to add it by clicking on the “Screen Options” tab at the top of the new post screen.

Now create a new custom field with the name of your keyword – e.g. CODE. The value of this field will be the code that you wish to embed. Save this custom field.

Now, wherever you wish the code to appear in your post, simply put the full identifier (opening, keyword and closing characters). For example, {{CODE}}.

If you wish to embed multiple pieces of code within a post you can add a suffix to the keyword. So we may set up 2 custom fields named CODE1 and CODE2. Then in our post we would specify either {{CODE1}} or {{CODE2}} depending on which you wish to display.

Don’t forget – via the options screen you can change any part of this identifier to your own taste.

How to Embed Code from an External URL

If you specify a URL within your post, surrounded by your choice of identifiers, then the contents of the URL will be embedded within your post.

Obviously, be careful when embedding a URL that you have no control over, as this may be used to hijack your post by injecting, for example, dangerous JavaScript.

For example, using the default options you could embed the contents of a URL using the following method…

{{http://www.example.com/code.php}}

or

{{https://www.example.com/code.html}}

How to Use Global Embedding

You can also create global embeds – that is creating one piece of embed code and using it in multiple posts or pages.

To do this simply make reference to an already defined (but unique) piece of embed code from another post or page.

So, let’s say in one post you define a custom field named CODE1. You can, if you wish, place {{CODE1}} not just in that post but also in another and it will work.

However, bear in mind that the embed code name must be unique – you can’t have defined it in multiple posts otherwise the plugin won’t know which one you’re referring to (although it will report this and list the posts that it has been used in).

In the administration menu there is a sidebar menu named “Tools”. Under this is a sub-menu named “Code Search”. Use this to search for specific embed names and it will list all the posts/pages that they’re used on, along with the code for each.

Embedding in Widgets

Natively you cannot use the embed facilities within sidebar widgets. However, if you install the plugin Widget Logic then Code Embed has been set up to make use of this and add the ability.

  • Install Widget Logic and activate.
  • In Administration, select the Widgets page from the Appearance menu. At the bottom there will be a set of Widget Logic options.
  • Ensure Use ‘widget_content’ filter is ticked and press Save.

Although you cannot set up embed code within a widget you can make reference to it, for example by writing {{CODE1}} in the widget.

Responsive Output Conversion

Responsive output is where an element on a web page dynamically resizes depending upon the current available size. Most video embeds, for instance, will be a fixed size. This is fine if your website is also of a fixed size, however if you have a responsive site then this is not suitable.

Code Embed provides a simple suffix that can be added to an embed code and will convert the output to being responsive. This works best with videos.

To use, when adding the embed code onto the page, simply add _RES to the end, before the final identifier. For example, {{CODE1_RES}}. The _RES should not be added to the custom fields definition.

This will now output the embedded code full width, but a width that is dynamic and will resize when required.

If you don’t wish the output to be full width you can specify a maximum width by adding an additional _x on the end, where x is the required width in pixels. For example, {{CODE1_RES_500}} this will output CODE1 as responsive but with a maximum width of 500 pixels.

It should be noted that this is an experimental addition and will not work in all circumstances.

Embedding in excerpts

By default embed code will not appear in excerpts. However, you can switch this ability on via the Code Embed options screen. If you do this then the standard rules of excerpts will still apply, but now once the code embed has applied – for example, excerpts are just text, a specific length, etc.

Filtering of code

By default, WordPress allows unfiltered HTML to be used by users in post custom fields, even if their role it set up otherwise. This opens up the possibility of leaving a site vulnerable, if any plugins that uses this data doesn’t check it appropriately.

“Out of the box”, neither the contributor and author roles have unfiltered HTML capabilities but can access custom post fields.

As this plugin requires the use unfiltered HTML, we need to ensure that the only users who use it, should be using it. From version 2.5, any users without this permission that update a post containing embeds from this plugin will cause the code to be filtered.

Reviews & Mentions

“Works like a dream. Fantastic!” – Anita.

“Thank you for this plugin. I tried numerous other iframe plugins and none of them would work for me! This plugin worked like a charm the FIRST time.” – KerryAnn May.

Embedding content – WSD Blogging Server.

Animating images with PhotoPeach – Cómo hago.

DomainExposuresHeadersLast Checked
i*t*e*o*o.com F 2026-04-26 04:51:24
g*e*r*o*.com (WP 6.9.4) F 2026-04-26 04:44:22
l*x*m*o*r*a*t*r*z*.com D 2026-04-26 04:41:48
a*h*m*s.com (WP 6.8.5) D 2026-04-26 04:31:42
c*r*s*r*i*e*.org A 2026-04-26 04:28:38
r*t*p*e*.com F 2026-04-26 04:17:43
a*c*e*d*w*e*t.com F 2026-04-26 04:04:26
d*s*o*m*r*e*i*g.com F 2026-04-26 04:03:33
c*n*d*x*m*i*r*t*o*.com (WP 6.9.4) F 2026-04-26 03:53:39
t*e*t*d*o*a*c*c*n*e*.com F 2026-04-26 03:52:30
a*g*w.com F 2026-04-26 03:48:30
w*e*a*e*a*e.com F 2026-04-26 03:45:31
i*d*v*s*b*e*b.org F 2026-04-26 03:42:36
g*i*e*l*g*.nl (WP 6.9.4) F 2026-04-26 03:30:01
w*d*e*v*k*n*s.c*.uk C 2026-04-26 03:27:00
t*a*v*x.com (WP 6.6.5) F 2026-04-26 03:24:37
s*x*t*a*k.com (WP 6.4.5) ⚠️ F 2026-04-26 03:17:42
f*i*e*e*i*n*.com F 2026-04-26 03:15:03
p*r*p*x*l.studio (WP 6.9.4) F 2026-04-26 03:13:40
c*n*d*l*k*s*o*s*r*a*i*n.com (WP 6.9.4) F 2026-04-26 03:12:08
y*g*t*a*m*e*s*.de F 2026-04-26 03:05:00
r*a*o*w*t*h.gr D 2026-04-26 02:57:43
p*0*p*.com F 2026-04-26 02:55:10
w*d*n*o*t.com (WP 6.8.5) F 2026-04-26 02:48:03
r*s*e*t*d*v*t*.com (WP 6.6.2) F 2026-04-26 02:27:05
o*t.e*s*a*a*e*y.com B 2026-04-26 02:26:38
o*t.p*l*c*o*e*c*d*m*.com B 2026-04-26 02:26:38
i*a*o*a*u*c*n.es 🔓 F 2026-04-26 02:26:23
i*3*h*m*u*g.com (WP 6.8.5) F 2026-04-26 01:58:50
r*v*r*o*c*r*o*.o*g.au (WP 6.9.4) F 2026-04-26 01:55:58
g*e*o*y*o*f*.com F 2026-04-26 01:43:56
i*y*i*l*e*h.com (WP 6.9.4) F 2026-04-26 01:33:02
f*g*d*.com (WP 5.8.13) ⚠️ F 2026-04-26 01:29:23
c*m*u*r*c*w*l*b*i*g.com D 2026-04-26 01:23:19
l*t*j*k*j*u*.com F 2026-04-26 01:17:41
r*c*a*e*u*t*.l*i.c*.gov A 2026-04-26 01:17:27
t*a*p*y*h*.com (WP 6.9.4) F 2026-04-26 01:09:43
d*r*z*o*e*o*n*.com (WP 6.4.8) ⚠️ F 2026-04-26 01:05:30
i*o*t*d.com (WP 6.1.10) ⚠️ F 2026-04-26 00:45:41
a*e*i*r*r*i*t*i*i*.com F 2026-04-26 00:17:11
s*u*i*b*u*o*.fr D 2026-04-26 00:00:32
c*m*k*n*o*y*.com (WP 6.7.5) F 2026-04-25 23:35:15
r*s*n*o*t*.com B 2026-04-25 23:24:47
m*l*y*i*k*e*a*l.com (WP 6.9.4) 🔓 F 2026-04-25 23:20:12
w*c*a*-*h*n*s*a*t.com (WP 6.9.4) F 2026-04-25 23:12:43
w*c*a*p*.com (WP 6.9.4) F 2026-04-25 23:12:42
c*m*i*g*s*y*o*.com (WP 5.1.1) ⚠️ F 2026-04-25 23:05:00
t*e*o*t*e*n*g.com (WP 6.9.4) F 2026-04-25 23:02:22
t*e*o*t*e*n*p*r*m*n*s.com (WP 6.9.4) F 2026-04-25 23:02:22
g*e*n*i*i*n*r*e*e*v*c*.com (WP 6.9.4) F 2026-04-25 22:55:22
t*a*i*o*m*m*.com (WP 6.9.4) F 2026-04-25 22:50:21
s*r*h*c*i*d*a*e*e*t*r.com (WP 6.9.4) F 2026-04-25 22:46:43
g*e*n*i*e*p*.com (WP 6.9.4) F 2026-04-25 22:30:32
c*b*l*.net F 2026-04-25 22:03:14
o*a*k*f*.com (WP 6.9.4) C 2026-04-25 21:49:24
c*m*i*g*d*-*o*e*m*.com (WP 6.9.4) F 2026-04-25 21:39:01
d*p*e*i*s*l*.com (WP 6.9.4) F 2026-04-25 21:38:40
r*s*c*l*.com F 2026-04-25 21:38:30
a*p.r*i*i*r*u*d*o*.com F 2026-04-25 21:25:09
c*m*i*e*a*d.com (WP 6.8.5) F 2026-04-25 21:21:54
l*o*i*.com (WP 6.9.4) F 2026-04-25 21:20:06
c*m*g*o*n*m*m*e*s*i*o*t*e*.com F 2026-04-25 21:14:02
c*y*e.us F 2026-04-25 21:09:51
l*n*v*r*a*e*t*t*.com F 2026-04-25 21:08:05
i*a*e*z*e*a*l*s.com F 2026-04-25 21:04:48
f*e*t*s*x*y.com (WP 6.7.2) F 2026-04-25 20:58:00
i*s*e*o*t*n*.com (WP 6.6.5) D 2026-04-25 20:30:44
p*l*f*l*f*s*i*a*.hr F 2026-04-25 20:30:44
c*m*r*d*e*a*o*e*o*o*.com F 2026-04-25 20:13:07
l*v*n*i*l*v*.c*m.au (WP 6.8.5) F 2026-04-25 20:10:35
w*n*y*i*y*p*n.u*s*u*s*.com F 2026-04-25 20:05:18
e*g*n*m*s*n*c*e*e*e*y.org (WP 6.9.4) F 2026-04-25 19:38:26
y*u*h*m*o*e*m*n*.c*.gov C 2026-04-25 18:54:24
f*a*o*r*.com F 2026-04-25 18:54:00
o*s.c*.gov C 2026-04-25 18:52:46
m*l*f*i*m*m*s*a*e.net (WP 6.6.5) F 2026-04-25 18:52:28
f*a*o*x*u*o.com F 2026-04-25 18:42:09
f*a*o*x.com F 2026-04-25 18:42:09
t*a*s*o*t*t*o*m*n*g*m*n*.us (WP 6.8.5) F 2026-04-25 18:36:17
s*m*w.org (WP 6.9.4) F 2026-04-25 18:25:50
f*a*o*m*d.com F 2026-04-25 18:25:04
o*r*p*r*e.org (WP 6.9.4) A 2026-04-25 18:14:30
f*a*o*e*m*d*c*n*.com F 2026-04-25 18:14:11
f*a*o*-*t.com F 2026-04-25 18:08:29
v*t*f*r*t*i*e.com C 2026-04-25 18:04:32
c*r*o*n.design (WP 6.9.4) F 2026-04-25 18:02:55
t*a*-*l*m*.com (WP 6.9.4) D 2026-04-25 17:59:07
t*e*o*e*c*o*l*e*o*r*e*o*m.com F 2026-04-25 17:50:34
s*p*l*x.info (WP 6.9.4) C 2026-04-25 17:48:58
i*l*n*-*e*s*.net F 2026-04-25 17:48:34
b*r*e*e.n*u*-*e*r*t*n*.fr (WP 6.9.4) D 2026-04-25 17:41:57
r*q*e*m*r*.com D 2026-04-25 17:36:38
t*a*b*o*.com B 2026-04-25 17:21:28
t*a*b*o*k.com B 2026-04-25 17:21:28
r*c*n*a*e*d.net (WP 6.7.1) F 2026-04-25 17:20:16
v*s*a*e*e*a.com (WP 6.9.4) F 2026-04-25 17:13:23
m*n*r*d*r*a*o*o*y.com F 2026-04-25 17:09:07
m*l*i*t*n*c.church (WP 6.9.4) F 2026-04-25 17:08:44
r*a*g*m*n*1*1.es (WP 6.7.5) F 2026-04-25 17:04:14
t*e*o*i*t*c*u*i*e*s.com F 2026-04-25 17:01:37

Top 50 Plugins

Plugin Count
elementor 1,952,883
contact-form-7 1,834,236
elementor-pro 1,115,090
woocommerce 905,543
revslider 669,564
jetpack 455,323
js_composer 451,579
wp-rocket 337,578
essential-addons-for-elementor-lite 302,217
gravityforms 260,848
header-footer-elementor 241,647
complianz-gdpr 237,217
instagram-feed 235,352
google-analytics-for-wordpress 230,220
gutenberg-core 227,821
elementskit-lite 226,777
cookie-law-info 226,293
google-site-kit 225,450
sitepress-multilingual-cms 210,080
bluehost-wordpress-plugin 201,331
wpforms-lite 161,792
astra-sites 154,513
gutenberg 153,690
litespeed-cache 142,755
cookie-notice 134,730
gtranslate 132,470
coblocks 125,426
the-events-calendar 124,415
popup-maker 117,182
woocommerce-payments 99,929
astra-addon 99,208
tablepress 99,084
bb-plugin 98,816
LayerSlider 97,311
wp-smushit 96,651
premium-addons-for-elementor 94,192
mailchimp-for-wp 92,399
duracelltomi-google-tag-manager 90,248
honeypot 89,300
cleantalk-spam-protect 87,809
akismet 87,548
woocommerce-gateway-stripe 85,707
megamenu 83,317
all-in-one-seo-pack 82,828
fusion-builder 81,482
formidable 79,568
smart-slider-3 79,400
creative-mail-by-constant-contact 78,230
creame-whatsapp-me 78,105
ewww-image-optimizer 76,846

Top 50 Themes

Theme Count
hello-elementor 647,191
Divi 540,528
astra 490,862
pub 154,843
Avada 126,205
flatsome 122,474
generatepress 121,902
oceanwp 88,879
h4 85,197
kadence 81,234
enfold 71,703
salient 68,882
bb-theme 61,424
twentytwentyfour 60,739
twentyseventeen 56,908
cocoon-master 56,102
blocksy 55,399
betheme 54,185
twentytwentyfive 52,850
dt-the7 46,384
neve 40,396
woodmart 38,939
Avada-Child-Theme 35,645
twentytwentyone 35,050
bridge 34,210
gox 33,503
twentytwenty 31,088
lightning 30,329
swell 29,457
twentytwentythree 27,891
Impreza 25,524
bricks 25,490
Newspaper 22,916
twentytwentytwo 22,453
epik-redesign 20,773
pro 18,852
storefront 18,648
uncode 18,623
twentysixteen 18,609
extendable 18,575
sydney 16,948
yith-wonder 16,512
Total 14,992
themify-ultra 14,988
twentyfifteen 13,251
hestia 13,171
porto 12,878
twentynineteen 12,823
yootheme 12,536
thrive-theme 12,469