custom-post-type-permalinks icon indicating copy to clipboard operation
custom-post-type-permalinks copied to clipboard

Support for preview when post is in draft and pending state?

Open emunthe opened this issue 10 years ago • 1 comments

Super excellent plugin !

I have a customer that needs a full publishing workflow, with many editors and heavy use of taxonomies and tags to categorize articles.

The plugin does exactly what I need and in a nice and solid way - when the post is published. To preview changes on a published post: domain.url/[taxonomy]/[post_name]/?preview=true&preview_id=452&preview_nonce=cedb8dac19

I however also need to preview when the post is in draft and pending.

At the moment only the default wp preview is available when the post is in draft and preding: domain.url/?post_type=[custom_post_type]&p=452&preview=true.

Is this a complex fix to add?

I will start reading the code to see if I can contribute, but I would appreciate some hints.

Regards Espen

I will also be doing a norwegian translation: cptp-nb_NO.po/mo

emunthe avatar Apr 16 '15 09:04 emunthe

Many Many Thanks!!

About preview permalink, if change the "https://github.com/torounit/custom-post-type-permalinks/blob/master/CPTP/Module/Permalink.php#L46", likely the issue can be solved.

Also I'm going to try to check the direction of me.

I'm looking forward to pull request.

torounit avatar Apr 16 '15 09:04 torounit