Support » Fixing WordPress » How can I view a post before it’s publish data?

  • I know it sounds silly to put a post with a publish data in the future and still expect to view the result in the present time.

    The reason for this is that I use the “Event calendar” plug-in where I do input posts in the “Events” category, in the front page this allows to view a number of upcoming events. But when I click on an event link which date or time is in the future, it will not show up as a single post. How can I make future posts viewable?


Viewing 3 replies - 1 through 3 (of 3 total)
  • If this is the plugin:

    are you sure you Published the post?

    I’m guessing you saved the post as a Draft.

    I wished that was the reason but it is not. The pattern they follow to turn up in single.php template is the date. Once we are over the date the post can be easily seen.

    I am making most of the templates by hand so I thought it might be a problem with programming the loop.

    Here is the code I use:

    <?php get_header(); ?>

    <div id=”content” class=”widecolumn”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <h2><?php the_title(); ?></h2>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <div class=”entrytext”>

    <?php the_excerpt(); ?>
    <?php the_content(‘<p class=”serif”>Sartu sarrera osoa »’); ?>

    <?php link_pages(‘Orriak: ‘, ”, ‘zenbakia’); ?>


    <?php endwhile; else: ?>


    <?php endif; ?>


    <?php get_footer(); ?>

    you could use another plugin, like futureposts, and it would affect all categories and all templates.

    this did my head in until i figured out that since i’m only posting in the future in one category, and my index page is tightly controlled to display only other categories, it’s not a problem for me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I view a post before it’s publish data?’ is closed to new replies.