Fabrica Reusable Block Instances

Description

Provides some vital functionality missing from WP 5.X Core for users of Reusable Blocks:

  • Shows how many times each Reusable Block has been used throughout the whole site (correctly counts multiple instances within posts)
  • This count links to a list of all the content which uses the block (Posts, Pages and Custom Post Types)

If you are making changes to Reusable Blocks and need to keep an eye on where those changes will be seen, this plugin is for you.

This is a super-lightweight plugin, with under 100 lines of code, no settings, and it does not modify your database in any way.

Designed to work seamlessly with Fabrica Dashboard: https://wordpress.org/plugins/fabrica-dashboard/

Screenshots

  • Reusable Blocks promoted to the main menu
  • List of all Reusable Blocks showing number of instances
  • List of content which uses a particular block

Installation

This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/fabrica-reusable-block-instances directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.

That’s all. No configuration required.

Reviews

July 7, 2019
This plugin has helped me so much and has saved me a lot of work and I really appreciate what it does. I created some custom reusable blocks and saved them offline from the plugin as .json files, and wouldn't you know it - if I did not have those .json files and this plugin I'd be beating my head against the wall trying to recreate those blocks due to technical problems on our end. Very nice!
May 9, 2019
Another simple plugin, that displays this content. Probably should be in core. I also love the fact that it tracks where that block has been used.
April 19, 2019
This plugin just made it to my MUST USE plugin list... All the advertised features work, but there is one more VERY important feature that I am not sure even the author realizes that this plugin does also. Right now, through this plugin's screen, or if not using this plugin, in the native Gutenberg's reusable blocks screen, you can import and export ONE reusable block at a time. That said, if you activate this plugin, you will now have the option to export ALL reusable blocks with one click, which is very useful if you have dozens of reusable blocks. To export all of them in one file, go to Tools->Export, and you will get the option to export all your reusable blocks. Everything that this plugin does, SHOULD be part of the WP core, no excuses, everything this plugin does, is extremely crucial. Some history... The blocks export feature in the Tools->Export screen was available when running WP 4.9x, and using the Gutenberg plugin. The export option from the Tools screen disappeared when Gutenberg was merged in the core. In December 2018, I notified the developers on slack abut this, in their core channel, and I was swiftly told to report it in the Editor channel, which I did immediately. The answer I got there was that this function should be restored, but never did - 3-4 months later. This plugin brings back the ability to export all the reusable blocks with one click, in one file, so I can pack up all my blocks and save them as backup, or simply move them to another website. Thanks for this great plugin, Nick.
Read all 3 reviews

Contributors & Developers

“Fabrica Reusable Block Instances” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.2

  • Minor bugfixes

1.0.1

  • Uses a more efficient query to count instances

1.0

  • First version