WordPress.org

Ready to get started?Download WordPress

Forums

WP Ultimate CSV Importer Plugin
[resolved] custom fields missing from mapping (7 posts)

  1. cclass
    Member
    Posted 9 months ago #

    Hi,

    I have a custom post type with 13 custom fields of meta data. When I try to import a CSV, only 5 show up when it comes time to map the fields from the file.

    I have no issues adding a post with all of the meta data normally.

    Thanks in advance for your help!

    Chris

    http://wordpress.org/plugins/wp-ultimate-csv-importer/

  2. fredricksujin
    Member
    Posted 9 months ago #

    Which plugin are you using ? Our importer is supporting only for Custom Post Type UI plugin. ACF support is in roadmap.

  3. smackcoders
    Member
    Plugin Author

    Posted 9 months ago #

    Hence not replied this issue is taken as resolved.

    Thanks

  4. Corys8646
    Member
    Posted 7 months ago #

    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.

  5. Corys8646
    Member
    Posted 7 months ago #

    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.

  6. Corys8646
    Member
    Posted 7 months ago #

    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);

  7. smackcoders
    Member
    Plugin Author

    Posted 7 months ago #

    Limited 30 for the performance and usability stand.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.