WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. fpuehs
    Member
    Posted 1 year ago #

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

    http://wordpress.org/extend/plugins/public-post-preview/

  2. Adam
    Member
    Posted 1 year ago #

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

  3. Dominik Schilling (ocean90)
    WordPress Dev
    Plugin Author

    Posted 9 months ago #

    I need some more input here.

  4. Adam
    Member
    Posted 9 months 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.

    Thanks!
    Adam

  5. ribbitfrog
    Member
    Posted 5 months 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

About this Topic

Tags

No tags yet.