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

Allow a limit on the 'taxonomy-images-list-the-terms' filter #12

Open
jtsternberg opened this issue Feb 28, 2013 · 1 comment
Open

Allow a limit on the 'taxonomy-images-list-the-terms' filter #12

jtsternberg opened this issue Feb 28, 2013 · 1 comment

Comments

@jtsternberg
Copy link

On a specific post, I would appreciate the ability to pass a 'number' parameter to the options parameter array so that I can just grab the first associated term image. If nothing else, an option to return the objects for manual manipulation rather than concatenated html. Would be happy to submit a pull request if this is something you would consider. thanks.

@benhuson
Copy link

You can use the taxonomy-images-get-the-terms filter to get a list of term objects for the post which you can then manipulate:

$terms = apply_filters( 'taxonomy-images-get-the-terms', '', array( 'post_id' => get_the_ID() ) );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants