Very short snippet: Wordpress, soon on your blog

Thursday, July 2, 2009

WordPress, like most of you know, can you post "post-dated" (great pun). In practice, the post is stored with a date that has yet to arrive. This allows many bloggers to "schedule" (schedule) publishing post without worrying about being physically present in the console for the publication itself. It also allows you to keep publishing firm place even when we are on vacation. Someone, then, could affect this function can show posts planned, ie those not yet actually published:

PHP:
  1. Soon <p> </ p>
  2. 'showposts=5&post_status=future' ) ; ?> <? php query_posts ( 'showposts = 5 & post_status = future');?>
  3. ( have_posts ( ) ) : while ( have_posts ( ) ) : the_post ( ) ; ?> <? php if (have_posts ()): while (have_posts ()): the_post ();?>
  4. <div>
  5. ; ?> </h2> <h2> <? php the_title ();?> </ h2>
  6. </ div>
  7. ; else : ?> <? php endwhile; else:?>
  8. No posts <p> program </ p>
  9. ; ?> <? php endif;?>

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

Related Post

Was this article helpful?: Per nientePocoAbbastanzaMoltoMoltissimo
Loading ... Loading ...

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

  1. getAvatar 1.0
    05 lug, 2009 Best of Week # 27 | Gioxx's Wall:

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

Leave a comment

TAG XHTML PERMISSIONS: <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 [as][/as]           // Actionscript [css][/css]         // CSS Style Sheet [html][/html]       // HTML [js][/js]           // Javascript [objc][/objc]       // Objective-C [php][/php]         // PHP [sql][/sql]         // SQL