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

Plugin: simple-embed-code (Used by 6,224 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
r*u*h*t*c*i*c.com (WP 6.0.11) ⚠️ F 2026-04-26 07:17:48
l*x*a*o*.com F 2026-04-26 07:16:44
t*e*a*l*b*l*g*o*p.com F 2026-04-26 07:03:03
m*d*l*q*.com (WP 6.9.4) F 2026-04-26 07:02:25
m*d*l*q*.com (WP 6.9.4) F 2026-04-26 06:52:46
a*p*e*v*c*s.net (WP 6.9.4) F 2026-04-26 06:48:02
c*n*p*d*l*a*a*u*e.com (WP 6.8.3) F 2026-04-26 06:27:19
e*s*a*a*e*y.com F 2026-04-26 06:26:46
t*e*w*n*e*c*u*s*.com F 2026-04-26 06:25:57
a*h*e*e*a*c*l*r*t*o*.com F 2026-04-26 06:16:52
f*o*t*u*d*n*s*u*c*.com (WP 5.9.9) ⚠️ F 2026-04-26 06:02:57
f*o*r*t*a*.com (WP 6.9.4) D 2026-04-26 05:54:33
f*i*i*m*t*o*.com (WP 6.9.4) F 2026-04-26 05:22:50
r*d*i*l.b*o*l*y.s*h.uk (WP 6.9.4) F 2026-04-26 05:14:32
t*e*i*n*e*a*a*e*y.c*.uk (WP 6.9.4) F 2026-04-26 05:14:32
s*e*a*t*l*m*n*.b*o*l*y.s*h.uk (WP 6.9.4) F 2026-04-26 05:14:32
a*h*n*a*m*n.com D 2026-04-26 05:13:33
w*e*l*m*r*c*o*o*r.com (WP 6.9.4) F 2026-04-26 05:10:38
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

Top 50 Plugins

Plugin Count
elementor 2,134,436
contact-form-7 1,987,130
elementor-pro 1,215,614
woocommerce 991,424
revslider 730,564
js_composer 489,156
jetpack 477,262
wp-rocket 363,373
essential-addons-for-elementor-lite 327,861
gravityforms 277,028
header-footer-elementor 266,685
complianz-gdpr 255,279
instagram-feed 253,476
google-analytics-for-wordpress 249,228
elementskit-lite 249,035
gutenberg-core 246,878
cookie-law-info 245,100
google-site-kit 244,358
sitepress-multilingual-cms 224,973
bluehost-wordpress-plugin 212,938
wpforms-lite 180,009
astra-sites 172,308
gutenberg 160,540
litespeed-cache 159,574
cookie-notice 145,251
gtranslate 145,020
coblocks 135,812
the-events-calendar 132,477
popup-maker 124,886
astra-addon 107,626
bb-plugin 106,998
tablepress 106,055
LayerSlider 105,363
wp-smushit 104,444
premium-addons-for-elementor 103,465
woocommerce-payments 101,228
mailchimp-for-wp 101,138
duracelltomi-google-tag-manager 96,938
honeypot 94,491
cleantalk-spam-protect 93,970
akismet 93,550
woocommerce-gateway-stripe 92,079
megamenu 89,459
creame-whatsapp-me 88,040
fusion-builder 87,490
smart-slider-3 86,311
formidable 85,167
all-in-one-seo-pack 84,707
pixelyoursite 83,486
pro-elements 83,391

Top 50 Themes

Theme Count
hello-elementor 703,507
Divi 584,993
astra 541,268
pub 167,274
Avada 134,782
generatepress 132,462
flatsome 132,067
oceanwp 96,456
h4 93,711
kadence 87,540
enfold 77,081
salient 74,150
bb-theme 66,776
twentytwentyfour 65,676
blocksy 60,924
twentyseventeen 60,696
cocoon-master 60,407
betheme 58,908
twentytwentyfive 58,322
dt-the7 50,019
woodmart 43,648
neve 43,495
twentytwentyone 37,716
Avada-Child-Theme 37,521
bridge 37,032
gox 35,255
twentytwenty 33,282
lightning 32,380
swell 31,887
twentytwentythree 30,203
bricks 27,398
Impreza 27,306
Newspaper 24,555
twentytwentytwo 24,043
epik-redesign 21,966
pro 20,182
storefront 20,026
uncode 19,959
extendable 19,952
twentysixteen 19,770
sydney 18,116
yith-wonder 17,850
themify-ultra 16,415
Total 16,114
twentyfifteen 14,524
hestia 14,237
porto 14,110
twentynineteen 13,634
yootheme 13,525
thrive-theme 13,408