[wp-hackers] Querying custom taxonomies by term ID

William P. Davis will.davis at gmail.com
Fri Feb 18 23:20:31 UTC 2011

OK, sorry I keep jumping back and forth on this.

So, using a slightly modified version of the code from stackexchange,
I've verified that all instances of the ID are being converted to the
slug by dumping $wp_query, but when I try to search within a custom
taxonomy it doesn't seem to filter the results. Is it possible to do

On Fri, Feb 18, 2011 at 5:47 PM, William P. Davis <will.davis at gmail.com> wrote:
> Nevermind, just found this:
> http://wordpress.stackexchange.com/questions/6066/query-custom-taxonomy-by-term-id
> On Fri, Feb 18, 2011 at 5:38 PM, William Davis <will.davis at gmail.com> wrote:
>> I'm using wp_dropdown_categories(); to get a dropdown list of terms in a
>> custom taxonomy for an advanced search page. But, I see no way to have the
>> value of each option to be the term slug, and I know of no way to query a
>> custom taxonomy by term ID. So, is there something I'm missing? If not, is
>> there a fix for that?
>> Will

More information about the wp-hackers mailing list