A
A
Andrey Surovtsev2020-05-16 17:41:29
Frontend
Andrey Surovtsev, 2020-05-16 17:41:29

Post to custom wordpress taxonomy?

Hello everyone, straight to the point.

There is a custom taxonomy and a couple of labels, I can’t understand how this custom taxonomy can be sent a request with content (by the type of ad submission) to a specific label, from the form on the frontend. sending in the form is carried out without registration.

here is a link to the fiddle with a piece of the form

code, the code that displays the custom taxonomy starts at line 60 and ends at line 78

, I can’t vouch for a working solution, but give at least a hint where it’s better to dig or what to read, the second day I can’t solve this issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pashenka, 2020-05-16
@surovtsevandrew

Posts are not posted in taxonomy. Posts are posted to wp_insert_post posts , then the resulting post is tied to some taxonomy and its term (can be read as categories and tag - this is the same in essence) using a function like wp_set_object_terms .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question