Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The dependable method is to enable your Discord server’s widget, copy the iframe Discord generates, and paste it into a WordPress Custom HTML block. The widget can show public server information such as online members, voice or stage channels, and an invitation, but it is not a full Discord chat window.

What you need before embedding

  • Administrator-level access to the Discord server’s settings, or permission to manage its widget.
  • Permission in WordPress to save iframe HTML. On some sites, only administrators or users with unfiltered HTML capability can do this.
  • A page, post, sidebar, footer, or theme template location where the widget should appear.

If you use WordPress.com, advanced iframe or script insertion may require a plugin-enabled plan. Self-hosted WordPress installations can also filter iframe markup through user-role settings, security plugins, hosting rules, or the active editor.

Enable the official Discord widget and copy its code

  1. Open Discord and select the server you want to display.
  2. Open Server Settings.
  3. Select Widget.
  4. Turn on Enable Server Widget.
  5. Review the widget’s invite settings, then copy the generated HTML. Discord may also offer JSON output; use the HTML option for a WordPress page.

Use the code Discord generates for your server rather than substituting a guessed server ID or copying an invite-page URL. A typical generated iframe has this shape:

<iframe src="https://discord.com/widget?id=YOUR_SERVER_ID&theme=dark"
  width="350" height="500" allowtransparency="true" frameborder="0"
  sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>

YOUR_SERVER_ID is only an example. The actual value must come from Discord’s widget code. Discord can change generated attributes over time, so treat the current snippet in your server settings as authoritative.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Insert the widget in WordPress

Use a Custom HTML block in the block editor

  1. Edit the page or post where the widget should appear.
  2. Click the + inserter and add a Custom HTML block.
  3. Paste the complete iframe copied from Discord.
  4. Choose Preview in the block to check the result.
  5. Save or publish the page.

The Custom HTML block is the reliable choice because Discord supplies an iframe snippet, not merely a standalone page URL. WordPress’s generic Embed block is designed primarily for pasting a supported third-party URL; pasting a Discord invite URL there does not guarantee that the live server widget will appear.

Place it in a sidebar or footer

In a block-based theme, open Appearance → Editor, choose the relevant template or template part, and add a Custom HTML block. In a classic theme, open Appearance → Widgets, select the sidebar or footer area, add a Custom HTML widget, and paste the iframe. The exact menu names can vary by theme and WordPress version.

Adjust size, theme, and responsive behavior

Discord’s generated code normally includes width, height, and a theme parameter. You can change the dimensions after confirming that the widget works:

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
  • Use theme=dark for dark layouts or theme=light where supported by the generated widget.
  • Set a height large enough to show useful member and channel information without excessive empty space.
  • Keep the width inside the page’s content column. A fixed width such as 350 pixels can overflow on narrow phones.
  • Use the block’s width controls or your theme’s additional CSS to constrain the iframe to the available space.

Test the published page at desktop and mobile widths. If a fixed iframe is wider than its parent container, visitors may see horizontal scrolling or clipped content.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the Discord widget actually displays

The official server widget is a public, read-only snapshot. Discord documents data fields for:

  • The server ID and server name.
  • An optional instant invite.
  • Accessible voice and stage channels.
  • Widget member objects, including the publicly exposed online users.
  • A presence_count value.

The documented member structure is limited to 100 widget users. The widget does not embed Discord’s text-chat interface, let visitors read all channel history, or provide a way to send messages from WordPress. If your goal is simply to invite visitors, a normal WordPress Button block linked to a Discord invite is a smaller and more predictable alternative.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Official iframe or WordPress plugin?

Start with Discord’s own iframe unless you need a plugin’s additional presentation or controls.

Consideration Official Discord iframe WordPress plugin
Setup effort Enable the widget, copy the generated HTML, and paste it into Custom HTML. Install, activate, configure, and maintain a plugin.
Layout and branding Basic sizing and light/dark presentation controlled by the generated code and WordPress CSS. May provide a more native-looking widget, styling options, member cards, or invitation controls.
Data source Discord’s public server-widget endpoint. Usually the same public widget data; verify the plugin’s current implementation.
Permissions and hosting Requires permission to save iframe HTML; WordPress.com plan restrictions may apply. Requires permission to install plugins and may add its own compatibility or privacy requirements.
Maintenance Little WordPress-side maintenance, but Discord controls the generated widget. Requires checking updates, WordPress/PHP compatibility, privacy terms, and continued endpoint support.
Result Public server snapshot with Discord’s standard presentation. Potentially richer presentation, but behavior depends on the plugin’s current quality and support.

Plugin-specific cautions

The WordPress.org Discord Display listing describes a native server widget, but older reviews on that listing report issues such as missing buttons, non-clickable channels, or a zero online count. Those are historical user reports, not a guarantee of current behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

TAL Server Widget for Discord describes online counts, member lists, avatars, status indicators, server branding, and an invitation button. Its listing says it uses Discord’s public Server Widget API and does not require a bot token or Discord application. Before installing either plugin, check its latest update date, supported WordPress and PHP versions, privacy policy, required permissions, and whether it still uses Discord’s public widget endpoint.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot a missing or broken widget

Nothing appears

  • Return to Discord’s Server Settings → Widget and confirm that the server widget is enabled.
  • Verify that the iframe’s id matches the intended server. Copy the code again rather than editing the identifier manually.
  • Check the page’s published view, not only the editor canvas; some editors do not render external iframes in editing mode.

The iframe disappears after saving

Use a Custom HTML block instead of a paragraph or ordinary text block. If WordPress removes the iframe on save, test with an administrator account and inspect security plugins, hosting filters, user-role HTML restrictions, and any editor setting that sanitizes markup.

The widget is too wide or too short

Change the iframe’s width and height, or apply the block and theme’s dimension controls. Keep the width within the content column and retest at phone width to prevent overflow.

Invite or member information is missing

Review the server’s widget and invite settings. The public widget exposes only the fields Discord documents; it cannot display private channels, arbitrary member data, or full chat content.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

WordPress.com rejects the code

Confirm that the site’s WordPress.com plan supports advanced Custom HTML and iframe insertion. If it does not, use a supported plan or replace the live widget with a standard button linking to your Discord invite.

Choose the simplest implementation

For most WordPress sites, the official iframe is the best starting point: it comes directly from Discord, requires no bot token, and can be placed anywhere WordPress accepts Custom HTML. Choose a plugin only when its native styling or controls solve a specific layout need and its current compatibility and privacy terms are acceptable.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.