"The preview could not load" error when creating a Single Layout for Custom Post Type

Basically, when I create a brand new “Single Layout”, everything works fine, until I attempt to use the top right Page Preview feature. Once I select “Product”, all hell breaks loose and I receive this error:
image

I will include specific URLs in a Secure Note, which will include 2 Loom videos demonstrating the error, links to the pages in question, as well as credentials to log in and try to fix this.

Hello Christopher,

Thanks for writing in! I could replicate the issue on my end. This could be because of the slug of your custom post type product. Try to change it to something else like my-product and test the site again.

Best Regards.

Best Regards.

Ahh, interesting. I had the post type as “product” even though a page had the slug of “products” (plural) and it still was messing up. I ended up just changing the slug on the page instead. Thank you!

You are most welcome, Christopher.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.