How can I add a custom post type using Gutenberg editor? I am trying but having some issues in code.
array(
‘labels’ => array(
‘name’ => __( ‘Portfolio’ ),
‘singular_name’ => __( ‘Portfolio’ )
),
‘has_archive’ => true,
‘public’ => true,
‘rewrite’ => array(‘slug’ => ‘portfolio’),
I am using this tutorial as reference https://www.cloudways.com/blog/gutenberg-wordpress-custom-post-type/
I am trying to add a new field in the checkout page but I am having an error. I am having this line as error
if (!$_POST[‘customised_field_name’]) wc_add_notice(__(‘Please enter value.’) , ‘error’);
I have completely checked the code but still, I am having an error. I have followed the WooCommerce checkout page tutorial and implement the same as discussed in the article. Can you help me to resolve this issue?