Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Taxonomy Doesn't Apply to the Post Type Automatically #102

Closed
mikevanwinkle opened this issue Jan 7, 2012 · 5 comments
Closed
Assignees
Labels
Type: Feature Features that add entirely new functionality that was not there before
Milestone

Comments

@mikevanwinkle
Copy link
Contributor

When creating a taxonomy there is a tick box for applying it to a post type. However, the application is not made. The user must go back into the post type screen and chose the new taxonomy. not a big deal, but just wondering if it's something that should happen automagically when creating a tax.

@sc0ttkclark
Copy link
Member

It's supposed to be working, I'm sending everything to the function correctly, I'm thinking it's something a bit deeper regarding timing of running the register post type / taxonomy functions in a specific order.

@ghost ghost assigned mikedamage Apr 12, 2012
@sc0ttkclark
Copy link
Member

I've set it up to add it during the post type/taxonomy registration, but I do need to add some hook to save it to the related object. Though I'm not sure entirely what WP wants, the functionality in each 'register' itself doesn't actually enable it on both sides, only one. So I'm not entirely sure what they intended with this or maybe it's a bug of their own.

@sc0ttkclark
Copy link
Member

After reading a bit, they should be synced, so I'll make sure to update the code to save it like a bi-directional field would save (update it from either side and it'll update both values).

@sc0ttkclark
Copy link
Member

Here's a task for you @mikedamage

@sc0ttkclark
Copy link
Member

Looks good, close if it works for you in your tests. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Features that add entirely new functionality that was not there before
Projects
None yet
Development

No branches or pull requests

3 participants