Skip to content
New issue

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

ERR_NAME_NOT_RESOLVED in the console #64

Open
lucrus73 opened this issue Dec 26, 2020 · 0 comments
Open

ERR_NAME_NOT_RESOLVED in the console #64

lucrus73 opened this issue Dec 26, 2020 · 0 comments

Comments

@lucrus73
Copy link

I've added a custom field to my CPT using CMB2 and this code:

$cmb->add_field( array(
	'name'    => __( 'Place', 'my-plugin-slug' ),
	'desc'    => __( 'The place where this playlist is going to be used', 'my-plugin-slug' ),
	'id'      => VBCPLM_Playlist_MetaKeys::$place,
	'type'    => 'custom_attached_posts',
  'options' => array(
    'show_thumbnails' => true, 
    'filter_boxes'    => true, 
    'query_args'      => array(
      'posts_per_page' => 10,
      'post_type'      => 'place_type',
    ), 
  ),
  'on_front'        => false 
));

but when the edit post backend page loads, I get the following in the console:

attached-posts-admin.css:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED
attached-posts.js:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED

and the attached posts field doesn't work (the '+' button does nothing).

I'm using the latest CMB2 code, up to date to the latest commit as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant