Sanitize a custom date meta field

I assume you’re missing the value=””, it seems like you use <input> as a regular HTML tag, and not a self-closing one. A basic example of what it should be like if I only use your value and ignore all the other attributes. <input value=”<?php echo esc_attr( get_the_author_meta( ‘periodo_1da’, $user->ID ) ); ?>”> And here … Read more

How to have a hierarchy of custom post types and use two of them in the permalink?

You can do this with custom hierarchical taxonomy and use it for your custom post type. Register the Taxonomy area for the post type content using the init action hook: function wporg_register_taxonomy_area() { $labels = array( ‘name’ => _x( ‘Areas’, ‘taxonomy general name’ ), ‘singular_name’ => _x( ‘Area’, ‘taxonomy singular name’ ), ‘search_items’ => __( … Read more