• Hey,
    Im using the UcanPost plugin on my site https://www.trekclass.com. For some reason, when people post it automatically chooses the default category (from the UcanPost plugin) and the one the user chose, so the post has two categories. Any idea what could be causing this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • uCan Post adds the both the default category that you have selected in the settings and the one the user chooses to the post.

    Thread Starter dchen05

    (@dchen05)

    Is there any way to change this at all? Even in the php?

    Plugin Author cartpauj

    (@cartpauj)

    You’ll need to find this in the ucan-post-class.php file:

    if($this->ucan_options['uCan_Show_Categories'])
            $ucan_new_post['post_category'] = array($this->ucan_options['uCan_Default_Category'], $_POST['ucan_submission_category']);

    And change it to:

    if($this->ucan_options['uCan_Show_Categories'])
            $ucan_new_post['post_category'] = array($_POST['ucan_submission_category']);
    Thread Starter dchen05

    (@dchen05)

    Thanks! This worked perfectly. Your the best. Keep it up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: uCan Post] Selecting Multiple categories?’ is closed to new replies.