Public Post Preview
[closed] Does not work with custom post types (5 posts)

  1. fpuehs
    Posted 3 years ago #

    No public preview option in custom post types. With normal posts everything works fine. Any clue?


  2. Adam Rubinstein
    Posted 2 years ago #

    I have a similar problem: custom post statuses. I'd love a version that could support both!

  3. Dominik Schilling
    4.6 Release Lead
    Plugin Author

    Posted 2 years ago #

    I need some more input here.

  4. Adam Rubinstein
    Posted 2 years ago #

    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.


  5. ribbitfrog
    Posted 2 years ago #

    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' ) ) )

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Public Post Preview
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.