• Resolved ekajuan

    (@ekajuan)


    I’m customizing my submit listing form by using a term-select field.

    But it seems the value can’t get in. I’ve checked the database on postmeta table, the value just not there.

    This is some part of the code I used for the frontend

    $fields['job']['job_kondisi'] = array(
    'label' => __( 'Kondisi', 'job-manager' ),
    'type' => 'term-select',
    'required' => true,
    'placeholder' => '',
    'priority' => 2,
    'default' => 'Baru',
    'taxonomy' => 'job_listing_type'
    );

    This some part of the code I used on the backend

    $fields['_job_kondisi'] = array(
    'label' => __( 'Kondisi', 'job-manager' ),
    'type' => 'text',
    'placeholder' => 'Baru | Bekas'
    );

    Other text field type has worked perfectly.

    So… where it has gone wrong?

    https://www.ads-software.com/plugins/wp-job-manager/

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Jolley

    (@mikejolley)

    You cannot use a text input in the backend – you’re assigning terms. Terms are like categories. You’d need to register your new term and then WP will add a meta box for you.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Listing Submission – Term-Select Field Type Problem’ is closed to new replies.