Wednesday, September 22, 2010

TutZone- Tutorials, Design news and Inspiration

TutZone- Tutorials, Design news and Inspiration

Link to TutZone

How to List Your Upcoming Posts

Posted: 22 Sep 2010 06:03 AM PDT


There is one way to make your readers interact with your blog in a more healthy way by making them eager for what’s coming next. With this hack you can show the posts which will be coming in upcoming days on your blog, this can make your readers eager to what they can read on your blog. Hope this helps.

One Step Procedure:

Note: Do take backup of your theme before you try this.

01. Just paste the following code where you want your upcoming lists to be displayed:

<div id="zukunft">
<div id="zukunft_header">

Future events
</div>

<?php query_posts('showposts=10&post_status=future'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div>
<p class=""><b><?php the_title(); ?></b><?php edit_post_link('e',' (',')'); ?>

<span class="datetime"><?php the_time('j. F Y'); ?></span>
</p></div>

<?php endwhile; else: ?>

No future events scheduled.

<?php endif; ?>
</div>

02. Save and you are done.

Source

No comments:

Post a Comment