I'm trying to list custom taxonomy terms (using get_terms) from within the custom post meta code (i.e., via the add_meta_boxes action). I am getting "Invalid taxonomy" return from the call to get_terms.
I've read through as many posts in this forum and others around this and know that it has to do with not having registered the custom taxonomy yet. And that the init action happens after the add_meta_boxes action. I've seen fixes where the DB is queried directly, a solution that would work for me. I'm building a theme for a client of mine and do not want to go this route if I can avoid it.
Is there any other way to list custom terms from within custom post meta?
The reason I want to do this is to provide a client manageable list of sections to add to a custom post along with text input associated with each section. Think of a CV. The client adds a new applicant and the applicant can have any number of sections in his/her CV. They can first select (from a drop-down) the section to add, and then add the appropriate text to it.
Thanks in advance.
get_terms
within a metabox callback, as that doesn't run until the page is being rendered. post the code you are using.