• Resolved wiryoputro

    (@wiryoputro)


    Hi again,

    I have a problem with “Custom field” limitation on the form

    let’s say I have more than 100 custom fields stored on my wordpress site, the custom field i need to get is start with the z (for example: zoro).
    because it’s located on the very bottom, i can’t see zoro custom field on the list of Displaying posts -> the custom fields tab -> Display this custom field

    I have add below code in function, but it only affect dropdown on the posts edit page, it did not affect your plugins.

    // Increase number of meta custom fields shown in dropdown
    add_filter('postmeta_form_limit', 'customfield_limit_increase');
    function customfield_limit_increase($limit) {
      $limit = 1000;
      return $limit;
    }

    how can I increase number of meta custom fields shown in dropdown on your plugins?

    cheers!

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

    (@aldolat)

    Hi,
    the hook postmeta_form_limit is intended to be used for WordPress. For “Posts in Sidebar” you have to use a dedicated hook named pis_postmeta_limit.

    Here is an example of code:

    /**
     * Change the number of custom fields shown in "Posts in Sidebar" widget admin.
     */
    function pis_change_custom_fields_number( $limit ) {
    	$limit = 100;
    	return $limit;
    }
    add_filter( 'pis_postmeta_limit', 'pis_change_custom_fields_number' );

    Let me know, please.

    Thread Starter wiryoputro

    (@wiryoputro)

    Hi Aldo,

    Great! it works!

    Thank you and Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom field option has limitation’ is closed to new replies.