Skip to main content
added 165 characters in body
Source Link
Milo
  • 78.9k
  • 4
  • 127
  • 168

You can use categories with pages by registering the category taxonomy for the page object type:

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

If you want to use a separate taxonomy for this, you can register your own taxonomy for pages.

You can use categories with pages by registering the category taxonomy for the page object type:

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

You can use categories with pages by registering the category taxonomy for the page object type:

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

If you want to use a separate taxonomy for this, you can register your own taxonomy for pages.

Source Link
Milo
  • 78.9k
  • 4
  • 127
  • 168

You can use categories with pages by registering the category taxonomy for the page object type:

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