[Plugin: Events Calendar] Assign Posts to a default Category (4 posts)

  1. 7746T
    Posted 7 years ago #

    It would be terrific if on the admin screen we could define a default category when using the option "Create Post for Event." Currently (unless I've missed something), new posts are dropped into Uncategorized. Thx!

  2. flick
    Posted 7 years ago #

    I was wondering about the same thing as well! Hopefully we will have an answer soon :)

  3. DubberDan
    Posted 7 years ago #

    Thirded. That would be a great addition to the plugin :-)

  4. fpuga
    Posted 7 years ago #

    I make a very dirty hack to do this but it works (at least in the 6.4.2a version)

    1.- You must create the category that you wants and looks for its category id.

    2.- edit the file ~/events-calendar/ec_management.class.php

    3.- change the line 60 from
    , 'post_category' => $wpdb->escape($this->blog_post_author)
    , 'post_category' => array(CATEGORY_ID)

    Use a the correct number that represent your CATEGORY_ID

Topic Closed

This topic has been closed to new replies.

About this Topic