Changelogs

Follow the improvements and fixes in each product release.

GT ACF Blocks Plugin

GT ACF Blocks Plugin adds 29 production-ready blocks to the WordPress editor with automatic field registration, conditional assets, performance controls, and protected lifetime updates. Requires ACF Pro 6.0+…

Explore Product

Release History

Permalink

2.2.5

What’s Changed

Fixed

  • Critical: Self-hosted videos never played — ACF compat layer returned raw numeric attachment IDs from $block['data'], but the template expected arrays with url and mime_type keys. Now resolves IDs via wp_get_attachment_url() / get_post_mime_type(), which also enables CDN URL rewriting.
  • Critical: Poster image for self-hosted videos had the same numeric ID issue. Now resolved via acf_blocks_resolve_image().
  • Controls toggle ignored: Strict comparison $controls !== false was always truthy for ACF’s 0 value. Changed to truthy check.
  • Video cropping: Changed object-fit from cover to contain for self-hosted <video> elements to prevent content cropping.

Added

  • Self-hosted video URL support: The Video URL field now appears for self-hosted type, allowing direct/CDN URLs that override the media library file upload.
  • Lazy-load self-hosted videos: Non-autoplay self-hosted videos defer network requests until near the viewport via IntersectionObserver (200px root margin).
  • Smarter preload: Self-hosted videos with a poster image and no autoplay use preload="none" instead of preload="metadata" for faster page loads.

Commits

  • v2.2.5: Self-hosted video URL support, lazy-loading, and performance improvements (af0dba3)
  • fix: resolve self-hosted video playback broken by compat layer returning raw attachment IDs (e4608fc)

Stats

  • Commits: 2
  • Changes: 6 files changed, 130 insertions(+), 17 deletions(-)

Plugin Info

  • Blocks included: 29
  • Requires WordPress: 6.0+
  • Requires PHP: 7.4+
  • Requires: ACF Pro 6.0+ or Secure Custom Fields

Installation

  1. Download acf-blocks-plugin-*.zip from the assets below
  2. Go to Plugins → Add New → Upload Plugin in WordPress admin
  3. Upload the zip file and activate

View Full Release History