WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Events Calendar] Assign Posts to a default Category

[Plugin: Events Calendar] Assign Posts to a default Category

  • 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • I was wondering about the same thing as well! Hopefully we will have an answer soon 🙂

    DubberDan
    Member

    @dubberdan

    Thirded. That would be a great addition to the plugin 🙂

    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)
    to
    , 'post_category' => array(CATEGORY_ID)

    Use a the correct number that represent your CATEGORY_ID

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Events Calendar] Assign Posts to a default Category’ is closed to new replies.