Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.