Support » Fixing WordPress » creating an archive for pages with categories?

  • I have used the following code so that the Pages on my site can use categories:

    add_action('admin_init', 'reg_tax');
    function reg_tax() {
    register_taxonomy_for_object_type('category', 'page');
    add_post_type_support('page', 'category');
    }

    But when I click into a category (ex: /category/shoes/), the archive page is blank. If I make a post with that category, it displays fine. For pages, is there any other code I need to tell the page to display them?

  • The topic ‘creating an archive for pages with categories?’ is closed to new replies.