Wow! Cool good to know. I didn’t know about amt_metabox_post_types
On functions.php
I’ve added this:
remove_action( 'add_meta_boxes', 'amt_add_metadata_box' );
and then:
add_action( 'add_meta_boxes', 'amt_add_metadata_box_custom_posts' );
function amt_add_metadata_box_custom_posts() {
$supported_types = amt_get_supported_post_types();
// Add an Add-Meta-Tags meta box to all supported types
foreach ($supported_types as $supported_type):
// If post, page or new, then show the meta tags box.
if ( $supported_type == 'post' || $supported_type == 'page' || $supported_type == 'new' ):
add_meta_box(
'amt-metadata-box',
__( 'Metadata', 'add-meta-tags' ),
'amt_inner_metadata_box',
$supported_type,
'advanced',
'high'
);
endif;
endforeach;
}
Hope this example could help someone ??
Anyway I am gonna have a look on amt_metabox_post_types
Thanks again George.
Miguel