nextjs-wordpress-starter
nextjs-wordpress-starter copied to clipboard
Previews Custom Post Types
Describe the bug Hey there,
I am trying to enable previews to custom post types. If i add a new post in a custom post type --- it redirects me to the Homepage https://ams.alopexnxt.dev/?post_type=vehicle&p=2855&preview=true
IF i edit and existing one https://ams-ashy.vercel.app/api/preview?name=2020-grand-caravan&id=2868&post_type=vehicle&token=any&_thumbnail_id=2691
I get the normal URL returned and no mention of being in preview mode.
If i make new normal post or page they display fine with content If i edit and existing page or post i get told im in edit mode then i get the preview mode but no updated content.