problem is when you create post or custom post from frontend it doesn't autosave the way it auto save as draft at WordPress backend. Thats why we added Draft option beside submit. After you save as draft only then you can see the post preview from front-end.
In /js/frontend-form.js line 88 I can add a link after the post is saved: self.after('<span class="wpuf-draft-saved"> Post Saved </span> <a href="http://ggsalas.staging.wpengine.com/?p=1024&preview=true">Preview</a> ');
My problem is change the “1024” number for a $post_id number of the recent saved post.
Any ideas on how to do it?
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘Draft and Preview Post’ is closed to new replies.