WordPress.org

Support

Support » Plugins and Hacks » uCan Post » [Plugin: uCan Post] Selecting Multiple categories?

[Plugin: uCan Post] Selecting Multiple categories?

  • Hey,
    Im using the UcanPost plugin on my site http://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.

    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']);

    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.
Skip to toolbar