We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pages and posts edit page in WP admin throw this error message in the console:
Could not find DOM element for container "carbon_fields_container_carbon_fields_widget_podcasts-2".
A blank page is loaded, and the WordPress editor is not accessible.
class ThemeWidgetExample extends Widget { // Register widget function. Must have the same name as the class function __construct() { $this->setup( 'widget_podcasts', 'Widget Podcasts', 'Widget Podcasts', array( Field::make( 'text', 'widget_podcasts_title', 'Widget Title' ), Field::make( 'complex', 'podcasts', 'Podcasts' ) ->add_fields( array( Field::make('text', 'link', 'Podcast Link'), Field::make('image', 'image_id', 'Podcast Link Image') ) ) ) ); } // Called when rendering the widget in the front-end function front_end( $args, $instance ) { echo $args['before_title'] . $instance['widget_podcasts_title'] . $args['after_title']; $html = '<ul class="podcasts">'; foreach ($instance['podcasts'] as $key => $podcast) { $html .= '<li class="podcast">'; $html .= '<a href="' . $podcast['link'] . '" rel="noopener nofollow" target="_blank">'; $html .= '<figure class="podcast__image">'; $html .= wp_get_attachment_image($podcast['image_id'], 'medium'); $html .= '</figure> <!-- ./podcast__image -->'; $html .= '</a> '; $html .= '</li> <!-- ./podcast -->'; } $html .= '</ul>'; echo $html; } } function load_widgets() { register_widget( 'ThemeWidgetExample' ); } add_action( 'widgets_init', 'load_widgets' );
register_sidebar(array( 'name' => 'Podcast Sidebar', 'id' => 'podcast', 'class' => 'widgets', 'before_widget' => '<li id="%1$s" class="widget %2$s">', 'after_widget' => '</li>', 'before_title' => '<h2 class="widget__title">', 'after_title' => '</h2>', ));
The text was updated successfully, but these errors were encountered:
I've got the same problem after upgrade to 3.3 version...
Sorry, something went wrong.
Fixed in v3.3.1 :)
jorostoyanov
No branches or pull requests
Version
Actual Behavior
Pages and posts edit page in WP admin throw this error message in the console:
Could not find DOM element for container "carbon_fields_container_carbon_fields_widget_podcasts-2".
A blank page is loaded, and the WordPress editor is not accessible.
Container definition
Steps to Reproduce the Problem
The text was updated successfully, but these errors were encountered: