WP From the Vault
WP From the Vault (from the Reader Appreciation Project) is a way to spotlight an old post on your homepage or on a regular page on a WordPress blog.
This plugin enables bloggers who wish to use a ‘page’ as the homepage of a WordPress blog. For more information on pages, visit the BlogHerald’s article on making any page the homepage. Also visit my article on using the “more” tag on a WordPress page.
Please download WP From the Vault 1.0
Screenshots

From the Vault Admin Panel

From the Vault in Use
Installation
Download and extract the zip file. Copy the ‘raproject_vault’ into your WordPress plugins directory. From the WordPress admin panel, add in a post ID you would like to spotlight.
Plugin Use
After setting a post ID in the admin panel, dive into a post’s or page’s code and add this in:
<?php global $rap_vault; if (!empty($rap_vault)) { $vault = $rap_vault->getPostID(); } <?php query_posts("showposts=1&p=$vault"); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <!-- your post code here --> <?php endwhile; endif; ?> ?>
In the part where it says <!– your post code here –>, it should be noted that your code to display your post should go in that portion. For example, here is a portion of code to display a post in the default WordPress theme:
<div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> </div>
Support
This plugin, like all plugins on this site, are provided as-is. However, I will try to help you if you need assistance. Please send an email or leave a comment.
This plugin was originally written to support a feature on this site, but I thought I’d release it publicly in case others wanted similar functionality.
Other RA Project Articles

06. Aug, 2007 






Author Info
Leave your comment now!