December 6, 2013 at 12:17 pm 13403 |
Denis
|
function yourFunction( $post_id ) {
$yourTitle = get_post_field( post_title, $post_id, display );
update_post_meta( $post_id, 'yourCustomField', $yourTitle );
}
add_action( 'wpuf_add_post_after_insert', 'yourFunction' );
add_action( 'wpuf_edit_post_after_update', 'yourFunction' );
|
December 6, 2013 at 6:48 pm 13417 |
Danilo
| Finally!
Thank you, DenisCGN, your code works for me!
Just a more little question:
– How can I update a field from another, if the original field is a date with YY/MM/DD HH:MM format and I need to update with only YYMMDD format?
|
December 7, 2013 at 1:16 am 13436 |