Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • C#
  • Asp.Net Core
  • SQL
  • Windows
  • WordPress
  • AI
  • JavaScript
  • CSS
  • MORE
    • HTML
    • Ajax
    • Git
    • Docker
    • Kubernetes
    • Photoshop
    • Visual Studio
Wordpress

WordPress: Fix Emoji Shortcodes Rendering as Boxes in RSS Feeds

- 30.11.26 - ErcanOPAK

📝 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_rss and the_content_feed and 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.

— WordPress Admin

Related posts:

WordPress: Use Child Themes to Customize Without Losing Changes

WordPress: Use Child Themes to Customize Without Losing Changes

Wordpress: Fix a Scheduled Post Publishing in the Wrong Timezone

WordPress: Fix a Scheduled Post Publishing in the Wrong Timezone

Wordpress: Massive Site Migrations via WP-CLI (Terminal Power)

WordPress: Massive Site Migrations via WP-CLI (Terminal Power)

Views: 3
Found this useful? Share it
XLinkedInWhatsApp

Post navigation

Git: Fix Attributes Export-Ignore Missing From a Release Archive
WordPress: Fix Gutenberg Reusing Blocks Across Unrelated Posts

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Read

  1. 01How to make theater mode the default for Youtube 1,079 views
  2. 02How to add default value for Entity Framework migrations for DateTime and Bool 996 views
  3. 03Get the User Name and Domain Name from an Email Address in SQL 995 views
  4. 04Get the First and Last Word from a String or Sentence in SQL 873 views
  5. 05How to select distinct rows in a datatable in C# 866 views
  6. 06How to enable, disable and check if Service Broker is enabled on a database in SQL Server 671 views
  7. 07Add Constraint to SQL Table to ensure email contains @ 629 views
  8. 08Average of all values in a column that are not zero in SQL 584 views
  9. 09How to use Map Mode for Vertical Scroll Mode in Visual Studio 561 views
Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
Back to top
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com