Skip to content

v0.2.6 - Critical Fix: ACF Fields Not Appearing

Choose a tag to compare

@kbrookes kbrookes released this 25 Nov 06:12
· 11 commits to main since this release

πŸ”§ Critical Fix: ACF Fields Not Appearing

This release fixes the critical issue where ACF field groups were not registering, causing fields to not appear in WordPress admin and showing as raw shortcodes in Bricks Builder.

The Problem

Symptoms:

  • ACF fields didn't appear when editing videos in WordPress admin
  • Bricks Builder showed raw shortcodes like {acf_nvm_published_at: d/m/Y} instead of actual values
  • ACF diagnostic showed "No Nova Video Manager field groups found"

Root Cause:
Hook timing issue - the plugin's init hook runs at priority 15 (to wait for ACF to load), but ACF's acf/init hook fires at priority 5. By the time our plugin tried to add an action to acf/init, that hook had already fired and wouldn't fire again.

The Solution

Now checks if acf/init has already fired using did_action():

  • βœ… If already fired β†’ register fields immediately
  • βœ… If not yet fired β†’ add hook as normal

This ensures fields are always registered regardless of initialization order.

What's Fixed

βœ… ACF fields now appear in WordPress admin when editing videos
βœ… ACF field values display correctly in Bricks Builder (no more raw shortcodes)
βœ… All video metadata fields accessible via REST API with show_in_rest enabled
βœ… Community members relationship field working properly

Available ACF Fields

Video Metadata:

  • nvm_youtube_id - YouTube Video ID
  • nvm_youtube_url - YouTube URL
  • nvm_duration - Video duration
  • nvm_published_at - Published date
  • nvm_view_count - View count
  • nvm_like_count - Like count
  • nvm_comment_count - Comment count
  • nvm_last_synced - Last sync time
  • nvm_description_modified - Description modified flag

Community:

  • nvm_featured_members - Featured community members (relationship field)

Testing

After updating to v0.2.6:

  1. Edit a video post - you should see the "Video Metadata" and "Community Members" field groups
  2. Run the diagnostic at https://yoursite.com/wp-content/plugins/Nova-Video-Manager/acf-diagnostic.php - should show 2 Nova Video Manager field groups
  3. Use in Bricks Builder - ACF fields should now display actual values instead of shortcodes

Upgrade Notes

  • No database changes required
  • No settings need to be reconfigured
  • Simply update and the fields will appear
  • If you moved from local to live, remember to re-enter your OAuth Client Secret

Previous Releases:

  • v0.2.5 - Debug logging
  • v0.2.4 - REST API support
  • v0.2.3 - OAuth improvements
  • v0.2.2 - Videos menu fix
  • v0.2.1 - Settings menu fix
  • v0.2.0 - Initial release with Members feature