I have created custom post type and created the post in a front custom form using logged in user and set status 'pending'. Now I want to show my created post preview like the published post.
I have hit URL like admin http://localhost/project/?post_type=deals&p=3305
but it is working for admin, not for author user.
In Another way, we can say that how to show pending custom post for the author only for preview.
'public' => true,'publicly_queryable' => true,'show_ui' => true,