I figured it out, wasn’t calling the function correctly. What you had actually worked perfectly. Thanks Kendall!
I’m working locally on a new theme but with a DB of an existing site.
That’s just the thing I’m pretty new to WordPress development and don’t understand too well how it works. I’m dumping each variable and getting either nothing or NULL. The taxonomy term is “issue” so what you’ve written looks fine to me but I’m not really sure how to debug further.
Any clues?
Hey Kendall,
Thanks for taking the time to write that function out. It seems like nothing is being retrieved though and I’m getting NULL on a var_dump of $the_query.
Any further advice or guidance?
Many thanks!