Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Archive: August, 2008

WordPress Hook for Entire Page Using Output Buffering

The WordPress plugin API provides a large number of action and filter hooks to make plugin creation easier. While the provided hooks cover just about everything you would need for plugin development, it can occasionally be useful to have a hook that can process the entire html output of WordPress. This article describes a method that can be used to create a ‘virtual’ hook which allows processing of everything between the end of the header section, and the footer of the theme, using the output buffering feature of PHP. More »

Updated Aug 31st, 2008 | Topic: WordPress Hacks and Info | 2 Comments »

WordPress 2.3+ Database Structure for Categories

With the release of WordPress 2.3, there were several major changes to the database structure. Most notably was the new taxonomy schema, which replaced the categories, post2cat, and link2cat tables in favor of a new term based system with three new tables - terms, term_taxonomy, and term_relationships. While there are plenty of guides on the new structure, this is a simple visual guide to the relationships of these tables - specifically for category handling. This information is really only useful for those who are writing plugins or other code that interface with the database directly, and want a handy reminder of the table relationships. More »

Updated Aug 30th, 2008 | Topic: WordPress Hacks and Info | 3 Comments »

Scheduled Draft Publish Plugin for WordPress

This plugin uses the built-in scheduling feature of WordPress to periodically take a draft post and publish it. You can define the time between occurrences, and choose to have it publish the oldest draft each time, or a random draft. By default, it publishes drafts in any category, but you can define one, or multiple, categories for it to take the drafts from. More »

v1.0 - Updated Aug 28th, 2008 | Topic: WordPress Plugins and Mods | 7 Comments »

Recent Categories Plugin for WordPress

This plugin generates a simple list of the most recently created categories in your WordPress installation. You can specify the number of categories listed, and the titles link to the category archives. This plugin can be called from a post or page, or directly from a template file. More »

v1.0 - Updated Aug 28th, 2008 | Topic: WordPress Plugins and Mods | 1 Comment »

Scheduled Post Shift Plugin for WordPress

This plugin automatically takes your oldest post, and updates its timestamp so that it appears as the latest post on your WordPress site. It does this by utilizing the cron feature built into WordPress 2.1 (and newer). It can rotate all the posts on your site, or just ones in specific categories. You can currently schedule it by setting the number of hours between shifts. For example, set it to 24 hours and it will shift the oldest post every day, at the time that you enabled it. More »

v1.22 - Updated Aug 28th, 2008 | Topic: WordPress Plugins and Mods | 47 Comments »

CSS Color Replacement Tool

This tool allows you to extract the hex color codes from a remote CSS file, displaying both the hex codes and the colors themselves. You can then enter the new color codes you would like to replace them with. The script will then perform a global search and replace on the contents of the file, replacing each color with the code you specified, and displaying the updated CSS. More »

Updated Aug 27th, 2008 | Topic: Tools and Utilities | No Comments »

Posts from Last X Days Plugin for WordPress

This WordPress plugin displays all posts from the last X days that contained posts. You can define the display template used to generate the list, choosing what data to display by inserting tags. Future-dated and private posts are hidden by default. This plugin can be called from a post or page, or directly from your theme’s template file, adding it to the sidebar, or wherever else you like. More »

v1.0 - Updated Aug 26th, 2008 | Topic: WordPress Plugins and Mods | 7 Comments »