Support » Plugin: Public Post Preview » Does not work with custom post types

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have a similar problem: custom post statuses. I’d love a version that could support both!

    Plugin Author Dominik Schilling (ocean90)


    WordPress Core Developer

    I need some more input here.

    Hi Dominik!

    In my case, the site I edit for uses custom post statuses, created through Edit Flow: instead of Draft, Pending Review, Scheduled and Published, we have Submitted, Accepted, Copyedit and Scheduled Published. The only status (before a post goes live) that your plugin recognizes is Scheduled… so we can’t use it. If the plugin could support user-created statuses (even if we had to assign them, that’d work), we’d be over the moon.


    If you’re using custom post statuses, then you can add in your custom status by editing this line:

    if ( ! in_array( $post->post_status, array( 'draft', 'pending', 'future' ) ) )

    and adding your custom statuses to it. Edit Flow creates statuses with multiple words with dashes instead of spaces, so for example “Ready to Publish” and “Under Review” would look like this:

    if ( ! in_array( $post->post_status, array( 'draft', 'pending', 'future', 'ready-to-publish', 'under-review' ) ) )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does not work with custom post types’ is closed to new replies.