I added the fieldName
parameter to tagit
function like this:
<script type="text/javascript">
$(document).ready(function() {
$("#myTags").tagit(
{
fieldName: "tages[]"
}
);
});
</script>
Now I can echo $_POST['tages'];
since the HTML after execution became:
<input type="hidden" style="display:none;" value="d" name="tages">
In addition, $_POST['tages'];
is a PHP array which I can directly put in second parameter of wp_set_object_terms
.
Thank you very much, some problems take a lot of time to resolve, but only before posting them on SO.