nextjs-wordpress-starter icon indicating copy to clipboard operation
nextjs-wordpress-starter copied to clipboard

Previews Custom Post Types

Open sloyer opened this issue 2 years ago • 0 comments

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.

sloyer avatar Feb 10 '22 23:02 sloyer