You have to specify the type as colorpicker inside the array key called type.
colorpicker
<?php array( 'label' => esc_html__( 'Your Title', 'textdomain' ), 'id' => "_your_id", 'type' => 'colorpicker', // specify the type field 'default' => '', 'conditional' => array() ) ?>
Use our function called tpmeta_field('_your_id_key')Â and pass the above array id key to fetch the metadata. Since the function tpmeta_field('_your_id_key')Â will return the value so you have to echo the value.Â
tpmeta_field
('_your_id_key')
<?php $value = function_exists('tpmeta_field')? tpmeta_field('_your_id_key') : '';echo esc_html($value); ?>
Powered by BetterDocs
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.