carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Container tabs support in widgets

Open webangon opened this issue 9 years ago • 5 comments

This is really great plugin !!! . Is it possible to add container support for widget as well? Fatal error: Class 'Container' not found in C:\server\htdocs\virginia\wp-content\plugins\carbon-fields\carbon-fields-plugin.php on line 49

webangon avatar May 19 '17 06:05 webangon

Thank you for your interest in the plugin, @webangon !

Widgets are already supported - you can read more on how to add widgets with fields here: https://carbonfields.net/docs/containers-widgets/

As for the error you are receiving - this is not an expected error and "Container" is not mentioned in the carbon-fields-plugin.php file. Are you sure you are not modifying the plugin files? If yes, you should not do that but add define your desired containers and fields in your theme, for example. You can read more on how to get started and where to define your containers/fields/widgets here: https://carbonfields.net/docs/carbon-fields-getting-started/

atanas-dev avatar May 19 '17 06:05 atanas-dev

My bad , I mean to add tabbed settings inside widget. What should it be instead of post_meta Container::make('post_meta', __('User Settings')) capture

webangon avatar May 19 '17 06:05 webangon

Are you referring to the ->add_tab() method of containers? Also I'm not sure how that screenshot relates to the issue?

atanas-dev avatar May 22 '17 06:05 atanas-dev

Yes. When I have many options , I want to organise them

webangon avatar May 22 '17 06:05 webangon

Marking this as a feature request for container tabs support in widgets.

atanas-dev avatar May 26 '17 06:05 atanas-dev