WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] associate page with category

[Resolved] associate page with category

  • hello
    i need to associate pages with category the way post are associated with category so that i can show pages in a prop down menu when someone hover over the category name.

    thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can enable categories for pages using..

    add_action( 'init', 'enable_category_taxonomy_for_pages', 500 );
    
    function enable_category_taxonomy_for_pages() {
        register_taxonomy_for_object_type('category','page');
    }

    Code can be placed in the theme’s functions.php file.

    thanks mark
    thats works like a charm

    Great tip! This should be on by default

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] associate page with category’ is closed to new replies.