WordPress.org

Ready to get started?Download WordPress

Forums

uCan Post
Selecting Multiple categories? (5 posts)

  1. dchen05
    Member
    Posted 3 years ago #

    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?

  2. cartpauj3
    Member
    Posted 3 years ago #

    uCan Post adds the both the default category that you have selected in the settings and the one the user chooses to the post.

  3. dchen05
    Member
    Posted 3 years ago #

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

  4. cartpauj
    Member
    Plugin Author

    Posted 3 years ago #

    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']);
  5. dchen05
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags