Very short snippet: Wordpress, soon on your blog

WordPress, like most of you know, allows you to publish a post "post-dated" (good pun). In practice, the post is stored with a date that is yet to come. This allows many bloggers to "schedule" (program) to publish the post without worrying about being in your console to the publication itself. It also allows you to maintain a constant after the publication of even when we are on vacation. Some, then, could affect this function can view posts planned, ie those not yet actually published:

1
2
3
4
5
6
7
8
9
<p> Coming soon </ p>
'showposts=5&post_status=future' ) ; ?> <? Php query_posts ('post_status = showposts = 5 & future');?>
( have_posts ( ) ) : while ( have_posts ( ) ) : the_post ( ) ; ?> <? Php if (have_posts ()): while (have_posts ()): the_post ();?>
<div>
; ?> </h2> <h2> <? php the_title ();?> </ h2>
</ Div>
; else : ?> <? Php endwhile; else:?>
No programmed <p> post </ p>
; ?> <? Php endif;?>

The output can be customized at will, being a standard WordPress loop.

A comment: "Very short snippet: Wordpress, soon on your blog"

  1. July 5, 2009 Best of Week # 27 | Gioxx's Wall :

    [...] Very short snippet: Wordpress, your blog shortly [...]

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL