php - How to insert Multiple Category id in wp insert post?Get the solution ↓↓↓
How to create a function to insert multiple category id in wp insert post
'post_content' => ''.$final.'', 'post_status' => 'draft', 'post_author' => $user_id, 'post_name' => ''.$_POST['orgname'].' Recruitment 2021', 'post_category' => array(2,3),
This is my wp insert function but I want to create a dropdown checklist to add multiple category id in post_category.
I want a simple solution for inserting a multiple category id in inside 'post_category' => array(2,3), by using a Dropdown checklist
Share solution ↓
Link To Answer People are also looking for solutions of the problem: cannot set properties of undefined (setting '_dt_cellindex')
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.