custom post type single post preview for pending status

Question

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.

my code—>>

'public' => true,'publicly_queryable' => true,'show_ui' => true, 

Please help

0
Pukhraj Suthar 4 months 2020-12-19T21:41:20-05:00 0 Answers 6 views 0

Leave an answer

Browse
Browse