How can i put php code on the wordpress page?

I think using the user_registration hook is probably the best fit for what you want to do. An example from the docs: add_action( ‘user_register’, ‘myplugin_registration_save’, 10, 1 ); function myplugin_registration_save( $user_id ) { if ( isset( $_POST[‘first_name’] ) ) update_user_meta($user_id, ‘first_name’, $_POST[‘first_name’]); } To be compliant with the WordPress way (and be less likely to … Read more

CPT post doesnt shows tags and category on backend admin page

You havent registered the taxonomy, example of one I use register_taxonomy( ‘location’, array(‘business’), /* if you change the name of register_post_type( ‘custom_type’, then you have to change this */ array(‘hierarchical’ => true, /* if this is true, it acts like categories */ ‘labels’ => array( ‘name’ => __( ‘Locations’, ‘custom’ ), /* name of the … Read more