Tag Info

Hot answers tagged

1

Can you just tell me how I can grab the input value for "name" and add the entry to custom_post_type? Sure thing: if ( isset( $_POST['name'] ) ) { $name = sanitize_text_field( wp_unslash( $_POST['name'] ) ); if ( $name ) { wp_insert_post( array( 'post_title' => $name, 'post_type' => ...



Only top voted, non community-wiki answers of a minimum length are eligible