WordPress.org

Forums

Team Rosters
[resolved] CSV import won't work properly... (2 posts)

  1. ahlemann
    Member
    Posted 2 years ago #

    Hello Mark,

    thanks for your Plugin.
    It helps. Now i tried to import basic player data with the csv-import.

    My csv looks like this:
    ---
    last name,first name,Position,Number,Height,Age,year,Bats,Throws
    Abel,Thiemo,,,,,,R ,R
    Ahlemann,Oliver,LF - Left Field ,46,,37,1975,R,R
    Ahlf,Jochen,OFF- Cut from Team,,,,,R,R
    ---

    When importing, the Slug-Name won't be generated.
    The importer output:

    ----
    $opt_cat(ID): 32 Team slug: d1
    Team slug: d1

    Loading DataSource ...

    Done.

    First Name:

    Last Name:

    Title: No first or last name Slug:

    $opt_cat(ID): 32

    retval = 1 ID: 2325 K: _mstw_tr_last_name V: Abel

    retval = 1 ID: 2325 K: _mstw_tr_first_name V: Thiemo

    retval = 1 ID: 2325 K: _mstw_tr_position V:

    retval = 1 ID: 2325 K: _mstw_tr_height V:

    retval = 1 ID: 2325 K: _mstw_tr_age V:

    retval = 1 ID: 2325 K: _mstw_tr_year V:

    retval = 14798 ID: 2325 K: Bats V: R

    retval = 14799 ID: 2325 K: Throws V: R

    First Name:

    Last Name:

    Title: No first or last name Slug:

    $opt_cat(ID): 32

    retval = 1 ID: 2326 K: _mstw_tr_last_name V: Ahlemann

    retval = 1 ID: 2326 K: _mstw_tr_first_name V: Oliver

    retval = 1 ID: 2326 K: _mstw_tr_position V: LF - Left Field

    retval = 1 ID: 2326 K: _mstw_tr_number V: 46

    retval = 1 ID: 2326 K: _mstw_tr_height V:

    retval = 1 ID: 2326 K: _mstw_tr_age V: 37

    retval = 1 ID: 2326 K: _mstw_tr_year V: 1975

    retval = 14814 ID: 2326 K: Bats V: R

    retval = 14815 ID: 2326 K: Throws V: R

    First Name:

    Last Name:

    Title: No first or last name Slug:

    $opt_cat(ID): 32

    retval = 1 ID: 2327 K: _mstw_tr_last_name V: Ahlf

    retval = 1 ID: 2327 K: _mstw_tr_first_name V: Jochen

    retval = 1 ID: 2327 K: _mstw_tr_position V: OFF- Cut from Team

    retval = 1 ID: 2327 K: _mstw_tr_height V:

    retval = 1 ID: 2327 K: _mstw_tr_age V:

    retval = 1 ID: 2327 K: _mstw_tr_year V:

    retval = 14830 ID: 2327 K: Bats V: R

    retval = 14831 ID: 2327 K: Throws V: R
    -----

    As you see, i get entries without Slugname...

    Please tell me i make a simple mistake and how to do it right.
    Thanks for the support!

    Regards,

    ahlemann

    http://wordpress.org/extend/plugins/team-rosters/

  2. Mark O'Donnell
    Member
    Plugin Author

    Posted 2 years ago #

    Hi ahlemann,
    At first glance, it appears you need to use "First Name", "Last Name", and "Year", not "first name", "last name", and "year". Please review the documentation here http://wordpress.org/extend/plugins/team-rosters/other_notes/

    Let me know.
    -Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags