New WP_query in template not working with CPT+category on some pages

For those looking for an answer:

My meta fields id’s in functions.php had a variable @prefix applied before the name. I added that prefix on the template and, voile!

Still unsure why my homepage template was working correctly with the wrong meta id’s, but an answer nonetheless.

Leave a Comment