Bump please. Anyone done this or something similar before?
THANK YOU, THANK YOU, THANK YOU, I’ve been trying to fix this thing for hours.
Thank you again!
Just a quick note to say that I used the same code on a non-custom post type (the simple single.php that comes with Kadence theme) and I get the same error.