📝 Fix Emoji Shortcodes Rendering as Boxes in RSS Feeds
WordPress’s built-in emoji support (wp-emoji-release.min.js) converts native Unicode emoji characters into inline images only inside the HTML page itself, using a script that never runs when a feed reader requests /feed/ — the raw Unicode codepoints go out untouched, and the moment a reader’s font falls back on an older system without full emoji coverage, those codepoints render as empty boxes (tofu) instead of the intended emoji.
🔎 The Problem
/feed/ (RSS 2.0) item <description> output:
"Our new release is here \U0001F389"
(raw 4-byte UTF-8 emoji codepoint, no wp-emoji conversion applied)
Older/limited-font feed readers display: [] ("tofu" box)
instead of the party-popper emoji
✅ Fix: Strip or Convert Emoji Before the Feed Is Generated
- Hook
the_excerpt_rssandthe_content_feedand run the text through a small function that replaces common emoji codepoints with their closest plain-text equivalent, so feed readers never depend on font coverage at all. - Alternatively, keep the Unicode emoji but add an explicit
<meta charset="utf-8">declaration check on the feed template — a surprising number of tofu-box reports turn out to be a feed proxy re-encoding the XML as Latin-1 somewhere upstream. - Test the actual fix in a real feed reader, not just by viewing the feed XML in a browser — browsers apply system emoji fonts that mask the exact problem a dedicated reader app will hit.
💡 Good to Know
- WordPress core’s own emoji-to-image conversion was built for the visual editor and the rendered page, never for feeds — that gap is expected behavior, not a bug to report upstream.
An emoji that looks perfectly fine on your own site’s homepage can still be shipping as an empty box the moment it leaves through the RSS feed.





