How to query by term ID within a Timber Wordpress Template

129 views Asked by At

I want to fetch a category from the posts terms based on an ID I have fetched.

I'm trying to do it like this:

{{ dump(post.terms( {query:{taxonomy:'category',  ID: 64}})) }}

The taxonomy query limits the returned terms to just categories but the ID is ignored, returning both selected categories instead of just category 64. I've also tried p: and id:

0

There are 0 answers