WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Map Categories to Pages] Solution for WordPress 3 compatibility (2 posts)

  1. Andrew Ryno
    Member
    Posted 3 years ago #

    Not sure how many people use this plugin but 5 reported it not working in WP 3.0. The author hasn't updated it and seeing as my client needed this functionality, I was able to get it working in WP 3.0.

    Reference: http://wordpress.org/extend/plugins/map-categories-to-pages/

    Add the following to map-categories-to-pages.php:

    function create_page_taxonomy() {
    	register_taxonomy('category', 'page', array(
    		'hierarchical' => true,
    		'label' => __('Categories'),
    		'singular_label' => __('Category'),
    		'show_ui' => true,
    		'query_var' => true,
    		'rewrite' => true
    	));
    }
    add_action('init', 'create_page_taxonomy');

    Comment this line in map-categories-to-pages.php:

    //add_action('admin_menu', 'add_category_box_on_page');

  2. Lee Rickler
    Member
    Posted 3 years ago #

    Thanks for this - works a treat.
    Now i have that sussed I need to pull category based info from a page and display it on another page.
    Halfway there with this tip, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic