• Resolved bubdev

    (@bubdev)


    Hello aldolat,

    I really appreciate the flexibility of your plugin! Nevertheless, I just got stuck trying to display a custom field because it isn’t present in the list of available fields.

    The dropdown list seems to hold a max. of 30 fields. I’ve tried to solve it using the postmeta_form_limit filter, but in vain. Is there a filter or some other solution to change the limit without editing the plugin directly?

    Also: Can you think of a way to limit the character count of the custom field content that works with your plugin?

    Thanks and best regards
    bubdev

    https://ww.wp.xz.cn/plugins/posts-in-sidebar/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    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.

    Plugin Author Aldo Latino

    (@aldolat)

    @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 :)).

    Plugin Author Aldo Latino

    (@aldolat)

    @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.

    Plugin Author Aldo Latino

    (@aldolat)

    @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

    Plugin Author Aldo Latino

    (@aldolat)

    Hello,
    does this happen at the end of the phrase only?

    Thread Starter bubdev

    (@bubdev)

    Yes, only the last character seems to be affected.

    Plugin Author Aldo Latino

    (@aldolat)

    @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!!

    Plugin Author Aldo Latino

    (@aldolat)

    You are welcome! šŸ™‚

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Custom fields missing in dropdown list’ is closed to new replies.