what's up guys.

In front page i'd like to make 2 text form input's to new term to a taxonomy and discription to this term.

I've got a code to add a new term

'Apple',   // the term         //Here i want value from input
'klient', // the taxonomy
    'description' => 'A yummy apple.',   //Here i want value from input
    'slug'        => 'apple',
    'parent'      => $parent_term_id,

How can i do that? Plese help guys

  • How do you use this code? – Jack Johansson Dec 15 '17 at 9:28
  • After Submit button click, i want to make this code and save new term, and description data. Could you help me? – Michał Misiek Dec 15 '17 at 10:21
  • Sure, but I don't know where and how you are using this code. Please add more details to your question by using the edit link under your question. – Jack Johansson Dec 15 '17 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.