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

I'm building a database of cities as a part of a "location" taxonomy. In order for the terms to render, as far as I've found, they need to have some type of content associated with them. My work-around is to create a "placeholder" post, assign it to the respective terms, then move it to the trash.

So, first, if you have any suggestions for a better way to get the terms to display without yet having content associated with them, please let me know!

Otherwise, what's the best way to bulk assign terms to a custom post?

share|improve this question
up vote 0 down vote accepted

With functions like get_terms, there is an argument hide_empty that will allow terms without associated posts to be shown. Set hide_empty to 0 and you will see your terms.

share|improve this answer
I was having the problem with actual displaying the term pages - not generating a list. It turned out to not be an issue, though - if I recall correctly I just had to reset my permalinks. Thank you for your answer. – Jonathan Wold Sep 13 '11 at 22:46

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.