Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Previews Custom Post Types #931

Open
sloyer opened this issue Feb 10, 2022 · 0 comments · May be fixed by #954
Open

Previews Custom Post Types #931

sloyer opened this issue Feb 10, 2022 · 0 comments · May be fixed by #954

Comments

@sloyer
Copy link
Contributor

sloyer commented Feb 10, 2022

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.

@gregrickaby gregrickaby added this to In progress in Next.js WordPress Starter Feb 23, 2022
@johnrobertmcc johnrobertmcc linked a pull request Mar 1, 2022 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants