• Joe

    (@joewa1980)


    Hi! We have a ‘Taxonomy Dropdown’ field in ‘WP Job Manager Field Editor‘ populating correctly with a valid taxonomy created from a custom post type, but when the user selects on of the options in the frontend form and submits the form the field is shown to be ‘invalid’ so the form cannot be eventually submitted. It is not a ‘required’ field, and when the user does not select an item the form is processed successfully. Any ideas? Many thanks! Joe

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Joe

    (@joewa1980)

    Other ‘real’ taxonomies are included in the form, so I assume this is what’s throwing the CPT taxonomy? But I’ve no idea where to go with that info.

    Yes, the problem is that the core WordPress term_exists function does not have any available filters, and as such, CPT-onomies is unable to hook into that function call to support the core WP Job Manager which makes that call to verify the taxonomy.

    See my reply in your support ticket, but it looks like there’s going to be a lot of issues if you try to use it as a taxonomy, and your best bet is to probably use a custom action hook field type to output your own dropdown of the CPT-onomies and then use the hook when the listing is saved/added to set the correct CPT-onomies value.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP Error when submitting a form containing CPT-onomies content’ is closed to new replies.