WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Actually is not child taxonomies to auto create them without something triggering something, I'm looking for a solution for when a taxonomy is published some other taxonomies of my choice will be published under it making them child.

Example I have artist like Eminem, Beyonce, Adelle etc... I want the artist to be the parent taxonomy and want things like Videos, Lyrics, and Album to be the child taxonomies.... So when i create a new taxonomy Like......

Beyonce (Parent Taxonomy) ------> Will be created manually

   ---> Videos (Child Taxonomy)  Auto publish under Beyonce immediately the Beyonce is publish so this becomes Beyonce's child

   ---> Lyrics (Child Taxonomy)     Auto publish under Beyonce immediately the Beyonce is publish so this becomes Beyonce's child

   ---> Album (Child Taxonomy)   Auto publish under Beyonce immediately the Beyonce is publish so this becomes Beyonce's child

And it should do the same for any artist i publish, Charles i hope its clear now.... Thanks

share|improve this question
    
Well, yes, but how will you determine what three child taxonomies should be created..? – Andrew Bartel Aug 9 '13 at 0:10
    
Is there no way we can place the 3 child taxonomies in a code so that when every parent is created those 3 child taxonomies will be child under it. – Kobbe Aug 9 '13 at 11:22
    
I suppose, but what are you trying to accomplish? Why does this need to be automated? A taxonomy creation is just a call to register_taxonomy(). You could put the three register_taxonomy() functions in an if statement and check for the parent taxonomy with taxonomy_exists() – Andrew Bartel Aug 9 '13 at 16:23
    
Actually its a music site and i want to list all artist based in my country, Bro u know it's not an easy task creating a whole bunch of artist one by one, Thats why i want some function/snippet that will kinda make things faster, Bro this is what i want accomplish, Create Example Artist "Eminem - parent taxonomy" which i will create manually, But things like "Albums, Tracks, Lyrics, Interviews and others - child taxonomies" Should be automatically publish too whenever a parent is published...Bro thanks for your responses i really appreciate. – Kobbe Aug 9 '13 at 23:17
    
Perhaps you could edit your question to explain what you are trying to accomplish on your web site and how these taxonomies would fit into it. – Charles Clarkson Aug 10 '13 at 19:36

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.