Content Blocks (Custom Post Widget) source code
By Johan van der Wijk, on WordPress.org since 2010. 10,000+ active installs.
The Content Blocks allows you to display the contents of a custom post type in a sidebar widget or using a shortcode. Below is its source code for every one of its 88 releases, what changed in the latest one, and how often it ships.
What changed in 3.4.4
Released Sep 21, 2026, 1 month after 3.4.3- WordPress 7.1 compatibility tested and confirmed
2 files changed since 3.4.3: 2 modified, 0 added, 0 removed.
- custom-post-widget.php modified, -448 bytes
- readme.txt modified, -1,606 bytes
Release history
88 releases since November 2010- 3.4.4 Sep 21, 2026 WordPress 7.1 compatibility tested and confirmed
- 3.4.3 Jul 22, 2026 Fixed PHP 8+ fatal errors when a widget references a deleted content block or a shortcode references a missing template. Missing templates now fall back to the standard shortcode output.
- 3.4.2 May 20, 2026 WP 7.0 compatibility tested and confirmed
- 3.4.1 Jan 27, 2026 Security fix: Added allowlist validation for the shortcode markup attribute to prevent XSS attacks (CVE-2026-0894).
- 3.3.9 Dec 1, 2025 WP 6.9 compatibility tested and confirmed