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 Gutenberg Reusing Blocks Across Unrelated Posts

- 30.11.26 - ErcanOPAK

📝 Fix Gutenberg Reusing Blocks Across Unrelated Posts

A Reusable Block in the Gutenberg editor is stored as a single shared wp_block post behind the scenes, and every page that inserts it links to that same post ID rather than copying its content — editing the block’s text from inside any one post silently rewrites it everywhere else it’s been inserted, which looks like random posts ‘losing’ or ‘gaining’ content nobody meant to change on them.

🔎 The Problem

Posts affected after one edit to "Pricing Disclaimer" reusable block:
  /pricing/           (intended edit)
  /enterprise-plans/  (unintentionally changed too)
  /faq/               (unintentionally changed too)

wp_posts table: all three reference the same reusable block
post_id via <!-- wp:block {"ref":482} --> comment delimiter

✅ Fix: Convert Shared Content to a Regular Block Where It Diverges

  • Select the reusable block on the post, open the block’s options menu (the three dots), and choose ‘Convert to Regular Blocks’ — this detaches that one instance so future edits stay local to that post only.
  • For content that’s genuinely meant to be shared, rename it clearly in Manage All Reusable Blocks (e.g. ‘SHARED: Pricing Disclaimer’) so editors can see at a glance that touching it is global.
  • Before editing any reusable block, search wp:block {"ref":ID} for its ID across the Tools > Export content XML, or use a ‘where used’ plugin, to see every post it actually touches first.

A reusable block looks like it belongs to the post you’re editing, but the content itself belongs to every post that ever inserted it.

— WordPress Admin

Related posts:

WordPress: Optimize Database for High-Traffic E-Commerce Sites

WordPress: Optimize Database for High-Traffic E-Commerce Sites

WordPress as a Headless CMS: Why Fortune 500 Companies Are Making The Switch

WordPress as a Headless CMS: Why Fortune 500 Companies Are Making The Switch

WordPress: Fix a Site Stuck Showing an Old Cached Version After You Publish Changes

WordPress: Fix a Site Stuck Showing an Old Cached Version After You Publish Changes

Views: 4
Found this useful? Share it
XLinkedInWhatsApp

Post navigation

WordPress: Fix Emoji Shortcodes Rendering as Boxes in RSS Feeds
SQL Server: Fix a Sequence Object Resetting After a Failover

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