• I need to write some posts without date and time.

    I am aware of the date-exclusion plugin. But that would change all my posts.

    Is there any way to turn off poststamps for a single post?

    Hope you can help.

Viewing 13 replies - 1 through 13 (of 13 total)
  • No, you can’t do that, but you can keep them from being visible. Just edit the stuff in your index.php file. I don’t know what your theme is, but you need to look for something like <?php the_time('F jS, Y') ?> – that’s what displays the date.

    Thread Starter fersken

    (@fersken)

    Thanks, doodlebee.

    One question though – editing the index.php would effect all my posts, right?

    Alternatively I could write some pagechilds. But how do I keep them from showing up in the menu?

    I use the Orange theme from Themeporter.

    yes, it will.

    You don’t need to write “pagchilds”. If you just want it to not appear for *one* post, then just specify that single post ID:

    <?php if (is_post('4')) { } else { ?>
     // code for displaying date here
    } ?>

    “4” being the ID # of the post in question. That will only work for the one single post, though.

    Thread Starter fersken

    (@fersken)

    Perfect. Thanks!

    Thread Starter fersken

    (@fersken)

    Just a thought…

    Dark winternights waiting around the corner, so if someone could make a plugin allowing you to disable date and time for single posts…

    Is this all about not showing certain posts on the front page?

    Why not just use a category excluder plugin?

    Thread Starter fersken

    (@fersken)

    Oh but… I had no idea it existed.

    It does the job. The post don’t show up in the calender or in the archives. Brilliant.

    Thanks.

    another thought — why wouldn’t have writing a page worked?

    Just a thought.. ive never tried it.

    I was wondering the same thing as you two – but I let it slide!

    Thread Starter fersken

    (@fersken)

    (-: Yearh, I tried that once…

    Because the pages/pagechilds turns up in my navigation, and I dont want that.

    But you can leave that out, easily. If you don’t want the pages/page links to show up, then don’t put them in your theme. If you don’t want *certain* pages to show up, then exclude them:

    <?php wp_list_pages('exclude=1,2'); ?>

    That’s it.

    EDIT: shoot, or is it *include* the ones you want to show? I always forget. It’s one or the other anyway.

    I do not want to have a date on my sticky post.
    I tried to place…

    <?php if (is_post('4')) { } else { ?>
     // code for displaying date here
    } ?>

    into this area of my theme index.php…

    <div class="contentdate">
    
    	<h3><?php the_time('M'); ?></h3>
    
    	<h4><?php the_time('j'); ?></h4>
    
    <?php if (is_post('4')) { } else { ?>
     // code for displaying date here
    } ?>
    	</div>

    This but did not work (i got errors)

    Well, you could also use a custom field for this. You would just have to write some php code to not display the date and time if that particular field is present with a post.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘How to write a post with no date?’ is closed to new replies.