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 am working on a real estate theme. I am using some custom taxonomies such as Listing Purpose and Property type etc. In my add Listing form I am displaying each taxonomy in a dropdown, for which to work accordingly, I need to manually select all the taxonomy values in a post first then I can see the dropdown being filled properly. Today, for a check I deleted all the posts and came back to add Listing page and the dropdowns were empty. My question is that is there any way that I need not to first select all the values in each taxonomy?

hope i was clear enough to get a suitable answer.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Ok, I figured out how to do it and it was quite simple and I was unable to figure out till now. Thanks to @NetConstructor.com in his reply to the post Saving Taxonomy Terms made me realize that using get_terms function (which I was already using), there is an argument 'hide_empty' helps to do the magic. How noob I am...

Thanks and hope it may help some others out there...

share|improve this answer

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.