WordPress.org

Ready to get started?Download WordPress

Forums

WP Document Revisions
[resolved] Use existing tags & categories taxonomies (2 posts)

  1. WorldWideWebb
    Member
    Posted 2 years ago #

    I'm sure there's something simple I'm missing, but I can't seem to figure out how to set it up to use my existing tags and categories (that my posts and pages are using). Can someone give a quick run-through of how to do this?

    Thx!

    http://wordpress.org/extend/plugins/wp-document-revisions/

  2. WorldWideWebb
    Member
    Posted 2 years ago #

    Nevermind! Found the answer. Just drop this at the bottom of your theme's functions.php file:

    add_action('init', 'docs_add_default_boxes');
    
    function docs_add_default_boxes() {
        register_taxonomy_for_object_type('category', 'document');
        register_taxonomy_for_object_type('post_tag', 'document');
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic