WordPress.org

Ideas

is_scheduled

  1. Marlimant
    Inactive

    Hi:
    You could add a conditional tag like is_scheduled_post.
    Is useful when I want to show a preview page to a non logged user.

    is_preview only work with logged in users, so is_scheduled_post should be a good solution.

    Greetings.

    Posted: 7 months ago #
  2. You can do that with https://wordpress.org/plugins/public-post-preview/

    Posted: 7 months ago #
  3. Marlimant
    Inactive

    Thanks for the reply Mika.

    I finally used this:

    <?php $current_user = wp_get_current_user(); if ( 0 == $current_user->ID  && 'future' === $post->post_status){ ?>
    do_something... <?php } ?>

    Greetings,
    Javier.

    Posted: 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    0 Votes
  • Status

    This is plugin territory