Hello @bubdev,
the hook of my plugin is different than WordPress’ one:
WordPress uses postmeta_form_limit.
Posts in Sidebar uses pis_postmeta_limit.
Try using this filter:
function pis_custom_field_limit_increase( $limit ) {
$limit = 50;
return $limit;
}
add_filter( 'pis_postmeta_limit' , 'pis_custom_field_limit_increase' );
Regarding the second question, I added this feature in 3.3 version, that should be released very soon. The user will be able to limit the post meta content to a certain number of words.
@bubdev
I’m wondering if it’s better to limit post meta content in words or in letters… What would be better for the average user of this feature?
Thread Starter
bubdev
(@bubdev)
Wonderful! Thanks for the great support. And I’ll happily wait for v.3.3.
Best
bubdev
Thread Starter
bubdev
(@bubdev)
Sorry, I just saw your question above.
I think it’s mainly a question of personal preference but can also depend on project specific priorities.
From a designer’s perspective I’d say limit it by characters, because it allows for more symmetric blocks of content, and it’s certainly better for very short texts (1 or 2, max. 3 narrow lines of text).
For longer texts I think a word limit usually looks more appropriate.
So in respect to what I guess is the majority of use cases, I’d implement a character limit (if both options are not an option :)).
@bubdev
OK, I’ll implement a character limit.
For the new release, please be patient, because I have to resolve some personal things. Anyway I think to make the new release in the next few days.
@bubdev
The 3.3 version has just been released!
Let me know if you encounter any bug, please.
Thread Starter
bubdev
(@bubdev)
Works great. Thanks again!
Thread Starter
bubdev
(@bubdev)
Hello aldolat,
when controlling the content limit of a custom field, in some cases I’m getting weird glyphs instead of the proper last letter. I think it happens with umlauts and accents.
Here is a screenshot: http://uploadpie.com/uta2u
Best regards
bubdev
Hello,
does this happen at the end of the phrase only?
Thread Starter
bubdev
(@bubdev)
Yes, only the last character seems to be affected.
@bubdev
I just released PiS 3.3.1 that fixes this specific issue. Please, let me know if you resolve.
Thanks for reporting the bug.
Thread Starter
bubdev
(@bubdev)
It did fix the issue. Thanks again for the outstanding support!!