TuKats Studios



Mar
28
Coming Attraction Plugin V0.9

Coming Attractions is a plugin to display future dated or scheduled posts.

This plugin is adapted from the “Upcoming” plugin from Michael Zadra, whose site (www.alyssabella.com) now seems to be gone. The previous plugin did not seem to work with the current 2.1.2 release of Wordpress.

I write long form fiction and wanted a way to schedule out installments and let readers know when the next installment would appear.

Installation:

It’s just the usual
1. Download the zip file [download#1#image]
2. Open with your favorite ‘unzipper’.
3. Upload ‘coming-attractions.php’ to your /wp-content/plugins/
directory.
4. Access Dashboard ->plugins and activate.
———————————————–

Usage:

Note the space in the php commands below. Remove the space before using ”

1. Where you want the listing to show, insert
<? php coming_attractions(); ?>

2. I suggest you use a conditional in case you don’t have anything scheduled, like so

<? php if (function_exists(’coming_attractions’)) { ?>
<? php coming_attractions(); ?>
<? php } ?>

The default display is
$before . $post_title . $middle . ‘(On ‘ . $post_date . ‘)’ . $after;

You can pass the following parameters through the function tag:

<? php coming_attractions(number of posts to show, ‘before each entry’, ‘between ‘, ‘after each entry’); ?>

Example:
<? php coming_attractions(10, ‘<li>’, ‘ ‘, ‘</li><br />’); ?>

Produces a listing like..

#testpost1 (On 2007-03-31)
#testpost2 (On 2007-04-15)

Output can be styled via your stylesheet

If you want to change the phrase that is shown if there are no future posts (currently ‘nothing scheduled’) it is line 26 of the script.

filed under: Plugins | permalink

2 Responses to “Coming Attraction Plugin V0.9”

  1. Coming Attraction : un plugin pour annoncer les prochains articles Says:
    August 20th, 2007 at 11:02 pm

    [...] aux visiteurs de passage de repasser sur le blog. Il existe un excellent plugin qui réalise cela : Coming Attraction v0.9. L’installation est simple, et l’utilisation également : il suffit de lire les [...]

  2. WordPress Plugins Database » Plugin Details » Coming Attractions Says:
    September 5th, 2007 at 2:41 am

    [...] Visit [...]

Leave a Reply

You must be logged in to post a comment.

© 2008 TuKats Studios | Theme by DemusDesign and Theme Lab | Powered by WordPress