Support

Account

Home Forums General Issues Cannot update title field based on post type Reply To: Cannot update title field based on post type

  • You need to use $post_id in get_post_type()

    
    if ('post' == get_post_type($post_id) {
    

    I’m surprised that it ever worked.