OK so I made some changes in tt-guest-post-submit.php, now I have 3 category fields (ttgps_chk_categoryfield, ttgps_chk_categoryfield2 and ttgps_chk_categoryfield3). I can see all of them in the dashboard, the guest can also see them, but when I publish the post, there is only one category assigned to the post, not all 3. I checkd ttgps-functions.php and I seems that I need to make changes here:
if(isset($_POST[‘catdrp’])){
$category = $_POST[‘catdrp’]==-1 ? array(1) : array($_POST[‘catdrp’]);
and here:
if (isset($_POST[‘submit’])){
$new_post = array(
…
‘post_category’ => $category, // Usable for custom taxonomies too
…
However, I don’t know what changes should I make in order for the post to have all 3 categories that were previously chosen by the guest. Could somebody help me?