WordPress.org

Ready to get started?Download WordPress

Forums

How can I view a post before it's publish data? (4 posts)

  1. xare
    Member
    Posted 8 years ago #

    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?

    Thanks

  2. MichaelH
    Member
    Posted 8 years ago #

    If this is the plugin: http://blog.firetree.net/2005/07/18/eventcalendar-30/

    are you sure you Published the post?

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

  3. xare
    Member
    Posted 8 years ago #

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

    </div>
    </div>

    <?php endwhile; else: ?>

    ERROR!.

    <?php endif; ?>

    </div>

    <?php get_footer(); ?>

  4. nearlythere
    Member
    Posted 8 years ago #

    you could use another plugin, like futureposts, and it would affect all categories and all templates.
    http://www.figby.com/wp-content/futureposts.php.txt

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic