Every person lives by convictions and motivations deep within. One of the gifts of being human is that we can set limits to those motivations, choose to do other than what our desires tell us to, and live according to structures that we design. Some people are more disciplined than others. I’ve been beginning to understand that I am one of the more undisciplined people in this world. I shy away from structure, and I break rules as often as I get the chance. This is my attempt to exercise that human intellect that has the ability to reign itself in. To build structures that will help me better fit in my world. One rule a day. Three hundred and sixty five days.
Follow the rules at rule365.com or twitter.com/rule365
/*
Plugin Name: Inline Posts
Plugin URI: http://aralbalkan.com/wordpress/
Description: Allows you to include posts in pages (and in other posts). To include a post, just enter its ID in square brackets in the body of a page or another post (e.g., [[42]]).
Version: 2.1.2.g
Author: Aral Balkan
Author URI: http://aralbalkan.com
*/
//
// Options/admin panel
//
add_option('inlineposts_title_tag', 'h2', 'The tag you want the titles of posts to appear in.');
// Add page to options menu.
function addAdminPage()
{
// Add a new submenu under Options:
add_options_page('Inline Posts Options', 'Inline Posts', 8, 'inlineposts', 'displayAdminPage');
}
// Display the admin page.
function displayAdminPage()
{
if (isset($_POST['inlineposts_update']))
{
check_admin_referer();
// Update title tag
$titleTag = $_POST['inlineposts_title_tag'];
if ($titleTag == '') $titleTag = 'h2';
update_option(inlineposts_title_tag, $titleTag);
// echo message updated
echo "
Inline Posts options updated.
“;
}