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

Add .tags() shortcut for .taxonomies().taxonomy('post_tag') #64

Closed
kadamwhite opened this issue Jul 18, 2014 · 0 comments
Closed

Add .tags() shortcut for .taxonomies().taxonomy('post_tag') #64

kadamwhite opened this issue Jul 18, 2014 · 0 comments
Assignees
Milestone

Comments

@kadamwhite
Copy link
Collaborator

The .taxonomies().taxonomy( 'taxonomy_name' ) pattern is a bit repetitive; we should expose a .tags() alias method on the WP instance objects that returns the same as .taxonomies().taxonomy( 'post_tag' );

@kadamwhite kadamwhite added this to the Polish milestone Jul 18, 2014
@kadamwhite kadamwhite self-assigned this Jul 18, 2014
kadamwhite added a commit that referenced this issue Jul 18, 2014
This presumes the following aliases are defined on the WP object:

- `.tags()`: Create a taxonomies request pre-bound to 'post_tag'
- `.categories()`: Create a taxonomies request pre-bound to 'category'
- `.taxonomy('tax_name')`: Create a taxonomies request pre-bound to 'tax_name'

See #63, #64, and #65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant