WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
[resolved] Existing categories and tags (5 posts)

  1. slowbutsteady
    Member
    Posted 1 year ago #

    Great plug-in, thanks for all your development efforts! Is it possible to use my existing post categories and tags instead of setting up new event categories and tags?

    Thanks!

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    You can - but when viewing posts/events in a category/tag term the events be treated as posts (sorted by post date, will not show event dates/venue etc, unless you alter you theme to do otherwise).

    You can the default post categories/tags taxonomy with the following (in your own plug-in or functions.php)

    register_taxonomy_for_object_type('post_tag', 'event');
    register_taxonomy_for_object_type('category', 'event');
  3. javllar
    Member
    Posted 1 year ago #

    Hi

    I would like to have the same functionality.
    I have tried the code above but nothing happend.

    What i need is to see list of my default kategories in EVENT edit page instead of event categories.
    So I can choose.

    Thanks.

  4. Stephen Harris
    Member
    Plugin Author

    Posted 1 year ago #

    Hi javllar,

    You need to wrap it inside a callback hook onto the init action.

    Untested....

    add_action('init','javllar_add_cats_to_event');
    function javllar_add_cats_to_event(){
        register_taxonomy_for_object_type('post_tag', 'event');
        register_taxonomy_for_object_type('category', 'event');
    }

    Note that this just adds the (default) category metabox to the event admin page. The calendar etc still uses event categories. There isn't a way round this without creating further problems. As mentioned above viewing a (default) category will treat your events like posts. Again, there isn't an easy way of resolving this.

  5. javllar
    Member
    Posted 1 year ago #

    Ok it works fine.
    Thanks a lot.

    I just need to find a way , how to tell wordpress to show events in categories.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.