It is all working fine on dev, but I cannot see why it's not working on production. I added the exact same custom code to dev and www sites, and registered shorten_string as a function in Front-end Content tab of Toolset > Settings. I cannot see anything environment specific in the code.
Thanks, I have cleared the WP Rocket cache on production and see the field being displayed now.
However that's curious, as it works on dev WITHOUT having the fieldlength there (see screenshots). Can you explain why it works on dev without?! (I think you still have access on dev from our other open ticket).
It seems to be really cache issue. I just removed the "fieldlength" from the "Functions inside conditional evaluations" at Toolset => Settings => Front-end Content and I can see it working on your production site.