Auto Generate Title
Closed this issue · 2 comments
ljohnso16 commented
the secret is in save post filter, we need to hook into this and change the title at the same time as when we save the metabox
ljohnso16 commented
the below code set the title but bunked the permalnk, the permalink slug is right but shows the id
global $wpdb;
$wpdb->update( $wpdb->posts, array( 'post_title' => seoUrl($title) ), array( 'ID' => $wedding_registry_id ) );
ljohnso16 commented
I think i am ok with this for now, its not ideal but mabe sometrhing to fix ins vs 2.0