Discord Channel Display
WordPress plugin that allows website administrators to embed Discord channel messages directly into WordPress posts and pages using shortcodes
by Your Name · github.com/andrzejskowron/wp-discord-feed · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/andrzejskowron/wp-discord-feed/archive/refs/heads/main.zipDiscord Channel Display - WordPress Plugin
Overview
Discord Channel Display is a WordPress plugin that allows website administrators to embed Discord channel messages directly into WordPress posts and pages using shortcodes. The plugin provides real-time message display with automatic refresh functionality, mimicking the Discord user interface with support for avatars, timestamps, reactions, embeds, and more.
Core Functionality
Basic Features (Free Version)
The plugin provides essential Discord integration capabilities:
- Message Display via Shortcode: Embed Discord channel messages using
[discord_channel]shortcode - Live Auto-Refresh: Configurable automatic message updates (5-300 seconds interval)
- Discord-like Styling: Messages displayed with Discord-inspired UI design
- User Information: Display user avatars, usernames, discriminators, and bot badges
- Timestamp Display: Relative timestamps (e.g., "5 minutes ago") with full date on hover
- Rich Content Support:
- Text messages with markdown formatting (bold, italic, underline, strikethrough, code)
- Image attachments with lazy loading
- File attachments with download links
- Message embeds (standard Discord embeds)
- URL auto-linking
- Responsive Design: Mobile-friendly layout
- Dark Mode Support: Compatible with dark themes
- Multiple Channels: Display multiple channels on the same page using different shortcode instances
Shortcode Usage
[discord_channel channel_id="YOUR_CHANNEL_ID"]
Available Attributes:
| Attribute | Required | Description | Default |
|---|---|---|---|
channel_id |
Yes | Discord channel ID | - |
limit |
No | Number of messages to display (1-100) | 50 |
refresh |
No | Auto-refresh interval in seconds (0 to disable) | 30 |
show_avatar |
No | Show user avatars (yes/no) | yes |
show_timestamp |
No | Show message timestamps (yes/no) | yes |
Example:
[discord_channel channel_id="123456789012345678" limit="25" refresh="60"]
Setup Requirements
- Discord Bot Token: Users must create a Discord bot application and obtain a bot token
- Bot Permissions: The bot requires:
- View Channels
- Read Message History
- Message Content Intent (Privileged Gateway Intent)
- Bot Invitation: Bot must be invited to the Discord server
Premium Features (1-Year License)
The premium version unlocks advanced Discord functionality through a licensed activation system that connects to a premium server (https://premium.skylarkads.com).
Premium Functionality
1. Message Reactions
- Display emoji reactions on messages
- Support for both Unicode and custom Discord emojis
- Show reaction counts
- Highlight user's own reactions
- Animated emoji support
- Custom emoji rendering from Discord CDN
2. Enhanced Message Embeds
- Advanced embed formatting processed through premium server
- Rich embed display with:
- Author information with icons
- Title and description
- Custom color borders
- Fields (inline and block)
- Images and thumbnails
- Video embeds with preview
- Footer with icons and timestamps
- YouTube video previews
3. Pinned Messages
- Dedicated
[discord_pinned]shortcode to display only pinned messages - Visual pinned message badge with pin icon
- Pinned messages displayed first in regular channel view
- Premium server handles pinned message sorting logic
4. Thread Support
- Display thread information on messages
- View thread reply counts
- Load thread messages dynamically
- Thread toggle buttons with message counts
- Active threads retrieval
5. Advanced Message Sorting
- Server-side message sorting through premium API
- Pinned messages prioritized to top
- Custom sorting logic maintained by premium server
6. Premium Shortcodes
[discord_pinned channel_id="YOUR_CHANNEL_ID"]
Displays only pinned messages from a channel.
Premium License Purchase
When users purchase a 1-year premium license, they receive:
- License Key: Unique activation key
- Premium Access: All advanced features unlocked
- Priority Support: Enhanced customer support
- 1-Year Duration: License valid for 12 months from activation
- Single Domain: License bound to one WordPress installation domain
License Renewal
- Licenses expire after 1 year
- Expired licenses revert to free version functionality
- Renewal extends access for another year
-
Grace period during temporary server issues
Installation
- Upload plugin to
/wp-content/plugins/discord-channel-display/ - Activate through WordPress Plugins screen
- Configure bot token in Settings > Discord Display
- Create Discord bot at https://discord.com/developers/applications
- Enable "Message Content Intent" for the bot
- Invite bot to Discord server with required permissions
- Use shortcode in posts/pages
Premium Activation
- Purchase 1-year license
- Navigate to Discord Premium in WordPress admin
- Enter license key and API key
- Click "Save and Verify License"
- Premium features activate immediately upon successful verification
WordPress Requirements
- WordPress Version: 5.0 or higher
- PHP Version: 7.2 or higher
- Required Capabilities:
manage_optionsfor settings access - Cron: WordPress cron for scheduled license checks