• Resolved luisa

    (@luisavilhena)


    Hello guys,

    I would like to know if it’s possible to have a date picker inside a Category.

    register_taxonomy("edicao", 
    		array("revista"), 
    		array(
    			'show_admin_column'=> true,
    			"hierarchical" => true, 
    			"label" => "Edições", 
    			"singular_label" => "Category", 
    			"rewrite" => array( 
    				'slug' => 'revista', 
    				'with_front'=> true 
    			),
    		)
    	);

    Thank you

Viewing 1 replies (of 1 total)
  • Thread Starter luisa

    (@luisavilhena)

    Resolved using https://developer.wordpress.org/reference/hooks/taxonomy_add_form_fields/

    function revista_define_taxonomy_options_edition(){
    	echo'
    		<div style="padding-bottom:30px;">
    			<label for="date">Informe a data da publicação da edição:</label>
    			<input type="date" id="date" name="initial">
    			<input type="date" id="date" name="end">
    		</div>
    	';
    }
    add_action ( 'edicao_add_form_fields', 'revista_define_taxonomy_options_edition');
Viewing 1 replies (of 1 total)

The topic ‘Datepicker in register_taxonomy.’ is closed to new replies.