• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Error loading block: invalid attributes – with repeater field

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Genesis Custom Blocks › Error loading block: invalid attributes – with repeater field

This topic is: not resolved

Tagged: field, genesis, repeater, sub-field

  • This topic has 2 replies, 3 voices, and was last updated 4 days, 9 hours ago by Kane jane.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 18, 2022 at 3:05 pm #505268
    rrbeccahart89
    Participant

    I'm trying to add a block with a repeater field. The field will show up in the editor, but after adding text then clicking out of block it displays the message "Error loading block: invalid attributes." I'm guessing I'm missing an attribute in the sub-field array. Can anyone help please please please!

    function add_services_block() {

    // One long array with lots defined.
    add_block(
    'services',
    array(
    'title' => 'Services',
    'category' => 'common',
    'icon' => 'account_circle',
    'fields' => array(
    'service' => array(
    'name' => 'service',
    'label' => 'Service',
    'control' => 'repeater',
    'sub_fields' => array(
    'heading' => array(
    'name' => 'heading',
    'label' => 'Heading',
    'control' => 'text',
    'width' => '50',
    ),
    ),
    ),
    ),
    ),
    );

    }

    May 30, 2022 at 3:24 am #505331
    Anderson1285
    Participant

    Hi, Kindly check check may be you have tick something wrong. Because I was applying it on Pikahsow tv app. And I selected wrong option for repeated block field and was showing exact the same issue. When I cleared everything and start working on it again. Then everything was fine.

    March 26, 2023 at 1:44 am #507062
    Kane jane
    Participant

    Hi, Kindly check may be you have tick something wrong. Because I was applying it on inshot pro apk. And I selected wrong option for repeated block field and was showing exact the same issue. When I cleared everything and start working on it again. Then everything was fine.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble