View Single Post
Old 03-10-2009, 05:27 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,308
wordpress tip: show whats coming up next on your blog

Often at the end of a TV show, they play some clips of what's coming up in the next episode. It's interesting to watch (Provided they don't spoil things too much on you!), simple for them to do, and near enough guarantees you'll remember to tune in again next time.

So why not do the same with your blog?

If you use WordPress's future-posting to schedule your posts for a few days in advance, you can show parts of those posts on your blog beforehand to let people know there's more to come

Why Use It?

Let's say a reader visits your blog and sees a headline that they love the sound of but can't access yet, it's going to get their curiosity up

If you copy and paste the code below into your sidebar, you will get a list of all the upcoming posts on your blog.

Code:
<ul>
<?php $my_query = new WP_Query('post_status=future&amp;order=ASC'); ?>
<?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Read <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; else: ?>
<li>No posts scheduled right now.</li>
<?php endif; ?>
</ul>
source: http://www.problogdesign.com/wordpre...-on-your-blog/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote