After they have submitted a post, I want to redirect to the post preview that is available from the dashboard. What is the dynamic redirect link to achieve this?
And then I will show conditional buttons on this template if post status is pending and author matches. On here, I would also like to feature a "go back to edit" button, which redirects the user back to the form.
These links are both available on the MB dashboard, and so I hope I can use them in other cases too!
However, for the preview I am struggling a little. As I need to output the post id within a shortcode: https://www.mydomain.org/?post_type=research&p=35022 almost like 'https://www.mydomain.org/?post_type=research&p='.$post->id.' - how do I do this in an MB shortcode so I have a dynamic redirect?