samedi 18 avril 2015

Make a custom taxonomy appear in adding posts (like category)

Dear Wordpress Pros and Ninjas,


I'm developing over a premium theme , I have some already registered taxonomies. Those taxonomies appears on the right side bar when creating custom posts (or custom pages not sure) that are related to the theme (and its plugins).


Thing is: Such ability to choose from those taxonomies doesn't appear when creating 'normal' posts. How can i make it appear there too ?!


What i've done so far is follow this post, so I created a plugin , activated it . It have code like this



add_action('plugins_loaded','add_spTaxonomy_pt');
function add_spTaxonomy_pt(){
register_taxonomy_for_object_type('actual_taxonomy_name', 'post');
}

?>


But that didn't help.


What should I do?


Aucun commentaire:

Enregistrer un commentaire