Viewing 6 replies - 1 through 6 (of 6 total)
  • Which plugin are you using ? Our importer is supporting only for Custom Post Type UI plugin. ACF support is in roadmap.

    Plugin Author smackcoders

    (@smackcoders)

    Hence not replied this issue is taken as resolved.

    Thanks

    I’m having a similar issue, it appears that there is a limit of 30 custom fields to display. By default WP limits this in the wp-admin/includes/template.php file.

    function meta_form( $post = null ) {
    global $wpdb;
    $post = get_post( $post );
    $limit = (int) apply_filters( ‘postmeta_form_limit’, 30 );
    $keys = $wpdb->get_col( “
    SELECT meta_key
    FROM $wpdb->postmeta
    GROUP BY meta_key
    HAVING meta_key NOT LIKE ‘\_%’
    ORDER BY meta_key
    LIMIT $limit” );
    if ( $keys )
    natcasesort($keys);
    ?>

    I have modified this to be 100, and now all custom fields show up when I make a new post, but is still limited to 30 in the plugin importer. I couldn’t find anywhere in the plugin where is specifies a limit on custom fields.

    Should mention that I am using WP-Types to create my fields, and most of my fields are showing up in the importer, just cutting off the last few at the 30 limit.

    Found it..
    Line 187 of
    SmackImpCE.php

    Change
    $limit = ( int )apply_filters(‘postmeta_form_limit’, 30);
    To
    $limit = ( int )apply_filters(‘postmeta_form_limit’, 100);

    Plugin Author smackcoders

    (@smackcoders)

    Limited 30 for the performance and usability stand.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘custom fields missing from mapping’ is closed to new replies.