Tried that and it’s not showing on settings page:
View post on imgur.com
Here’s custom post/taxonomy code from functions:
//custom post type
add_action( 'init', 'trackcamp_gallery_post_type' );
function trackcamp_gallery_post_type() {
register_post_type( 'gallery_post',
array(
'labels' => array(
'name' => __( 'Gallery' ),
'singular_name' => __( 'Gallery' ),
'supports' => array( 'title', 'editor', 'thumbnail' ),
'taxonomy' => 'series'
),
'public' => true,
'has_archive' => true,
)
);
}
add_theme_support( 'post-thumbnails', array( 'post', 'gallery_post' ) );
//custom taxonomy
function trackcamp_gallery_taxonomy_init() {
register_taxonomy(
'filter',
'gallery_post',
array(
'hierarchical' => true,
'label' => 'Filter',
'query_var' => true,
'rewrite' => array('slug' => 'filter')
)
);
}
add_action( 'init', 'trackcamp_gallery_taxonomy_init' );
and code i’ve used to register it for plugin:
$my_tax_names = array( 'Gallery', 'gallery_post', 'snippets' );
if ( function_exists( 'the_seo_framework' ) ) {
$tsf = the_seo_framework();
foreach ( $my_tax_names as $tax_name ) {
add_action( $tax_name . '_edit_form', array( $tsf, 'pre_seo_box' ), 0, 2 );
}
}
Have i missed something ?