Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I previously declared the taxonomy " artist " for a profile post type.

Now i am creating a CD post type and would like to use the same artist list from the profile post type

That is one example if i get a solution i will be using this to share a number of other taxonomies among-st post types :D

Thanks in Advance.

P.S. I use JW Custom Post Types https://github.com/JeffreyWay/Easy-WordPress-Custom-Post-Types/

share|improve this question
    
I asked the taxonomy and he said it was ok. –  Wyck Feb 14 '13 at 5:41
    
Please, check the faq and the page How to Ask. –  brasofilo Feb 14 '13 at 7:22
add comment

2 Answers

You can use an array of post types in register_taxonomy()

$object_type (array/string) (required) Name of the object type for the taxonomy object. Object-types can be built-in Post Type or any Custom Post Type that may be registered.

http://codex.wordpress.org/Function_Reference/register_taxonomy

Example:

register_taxonomy( 'artist', array( 'profile', 'cd' ), $args );
share|improve this answer
    
I got and undeclared error from the jw_custom_posts im using jw custom post type i probably should have included that github.com/JeffreyWay/Easy-WordPress-Custom-Post-Types –  Katmassive Feb 14 '13 at 6:30
add comment

You can easily use register_taxonomy_for_object_type() to link existing taxonomies to existing post types.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.