WordPress.org

Ready to get started?Download WordPress

Forums

TagPages
Enabling TagPages for custom post types (2 posts)

  1. luke_m_m
    Member
    Posted 2 years ago #

    I have setup a custom post type in my theme called 'portfolio'.

    When I install the plugin it works great on my regular pages and posts but I cannot get the 'Tags' admin interface within my custom post types.

    Here's how i'm registering the custom post types:

    /* Portfolio */
    function ts_post_type_portfolio() {
    	register_post_type( 'portfolio',
                    array(
    				'label' => __('Portfolio'),
    				'public' => true,
    				'show_ui' => true,
    				'show_in_nav_menus' => true,
    				'rewrite' => true,
    				'hierarchical' => true,
    				'menu_position' => 5,
    				'supports' => array(
    				                     'title',
    									 'editor',
                                         'thumbnail',
                                         'excerpt',
                                         'custom-fields',
                                         'revisions')
    					)
    				);
    	register_taxonomy('portfoliocat', 'portfolio', array('hierarchical' => true, 'label' => __('Portfolio Categories'), 'singular_name' => 'Category'));
    }

    I saw in the code that you configure the plugin to find
    post_type => 'page'
    and tried to expand upon this to include
    post_type => 'portfolio'
    but alas to no avail.

    Any help would be massively appreciated.

    Thanks,

    Luke

    http://wordpress.org/extend/plugins/tagpages/

  2. luke_m_m
    Member
    Posted 2 years ago #

    Any takers?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic