Monday By Noon

WordPress Post Notes Plugin

This WordPress plugin gives you the ability to append any number of WYSIWYG formatted blocks of text to your posts.

Installation

  1. Download the file and unzip it. Upload the ‘post-notes’ folder and its subfolders to your /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ admin menu in WordPress

Usage

To retrieve an associative array containing all Notes for a post, use the following within The Loop:

<?php $post_notes = post_notes_get_notes(); ?>

You will be provided an associative array with which to work in your template:

<?php $total_notes = sizeof($post_notes); ?>
<?php if($total_notes>0) : ?>
  <?php for ($i = 0; $i < $total_notes; $i++) : ?>
    <div class="post-note">
      <div><?php echo $post_notes[$i]['text']; ?></div>
    </div>
  <?php endfor ?>
<?php endif ?>

Screencast

Changelog

Version 1.0 beta
February 8th, 2009 – Initial release
Powered by Fusion

This article is so meta

Published February 7th, 2009

Random article