If you are new in WordPress and don’t know how to register the custom sidebar and how to get the custom sidebar value on any page then simply follow the tutorial steps and you can get your custom sidebar.
Copy the below code in your functions.php for register a new custom sidebar.
‘id’ => ‘ID of your sidebar without space and special character’,
‘name’ => ‘Name of your sidebar without space and special character’,
‘description’ => __( ‘Enter Placeholder Text Here’, ‘text_domain’ ),
Now, You can view the sidebar in you wp-admin widget section.
If you need to get that new custom sidebar value in the wordpress pages then copy the below code with starting and ending of php code in your pages.
dynamic_sidebar( ‘Your custom register sidebar id’ );
Now if you put any widget inside the custom sidebar it will display the widget where you put the code which is define in the step 3.