I would like to start off by saying although this is my preferred method over the modifying core code method I explored, this is still a very hack-y method but is extremely easy to execute. This is why it is what I use on this very site when I query categories in a repeater.
Did you like it? Take a second to support us on PayPal or Patreon!