WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Kinda confused on this.. hoping someone can help.

I have custom post type named "Providers" that I want to pull entries from that are tagged "highlighted". I enabled tag support on the custom post type and then tried using tag=highlighted and tag_id=15 in a new query but it's just showing the hello world post.

Here is the gist:


share|improve this question
up vote 0 down vote accepted

Ahhh.. not sure why I didn't think to use tax_query. A friend figured it out. Gist is updated.

share|improve this answer
If you found the answer, then please put it here and mark it as accepted! – Rutwick Gangurde Sep 6 '12 at 5:37
It's a best practice to post the code directly into SE rather than offload it. If the gist link changes, then this answer becomes completely irrelevant. :) – Brian Fegter Sep 6 '12 at 10:18
Sorry guys, taken care of! Thanks Brian. I'll embed the code next time. – BaltimoreDrew Sep 6 '12 at 18:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.