If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #24025

    I’ve created a custom archive-product.php and content-product.php for my /shop/ page. I currently get an error saying that $product isn’t defined (which, of course, it is – it’s global on this page).

    I’ve tried the exact same files in other themes and it works fine, so I know it’s something to do with Enfold, but I have no idea what.

    Any suggestions on where to look?



    Please post the code of your templates. You can use: https://gist.github.com/



Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Undefined $product’ is closed to new replies.