Querying for image of term
-
I’m trying to do something very simple, but it seems that my use case is not supported by the filters of this plugin.
The situation:
I want the attached image of a specific term.
I know the taxonomy, the ID and slug of the term.
I need to get the image.The problem:
taxonomy-images-get-terms() seems to understand only “give me the whole taxonomy”, or “give me the images linked to this post”.
It doesn’t understand if I query for a precise term.
For example this:
$terms = apply_filters( 'taxonomy-images-get-terms', '', array( 'taxonomy' => 'cities', 'slug' => 'new-york', ) );
Will produce the whole list of cities. The slug isn’t understood by the filter.
Any ideas?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Querying for image of term’ is closed to new replies.