I want to display the lengths of some Post Titles and of Custom Fields.
I've found some threads about calculating the length of a custom field within a conditional, but I'm afraid I wasn't able to convert that answer into a simple display of the lengths.
Hello. Thank you for contacting the Toolset support.
Well - do you mean that you want to display the total number of character value? Where exactly you want to display the total character count value? in admin or frontend?
The "title" version works perfectly, but I'm confused about the "post_type" version and I'm not familiar enough with PHP - especially in a WP environment - to be able to decode what you've done.
I'll want to use the short-code with various custom fields - for example 'basic-topic'.
With that, I've tried
[show_char_count type="basic-topic"]
and
[show_char_count type="wpcf-basic-topic"]
But neither works.
BTW - this is all within a View loop - in case that makes a difference.
Thanks! That works. And I see now that my original question was not clear enough about what I needed, so thanks for your patience.
I think this is a useful facility, so if it get written up as a "Solution", please note that the usage should include type="field", rather than type="postfield".