How To Make Your Own WordPress Widget
Posted by Aaron D. Campbell on November 9, 2009 · 10 Comments
In this article, I’m going to show you how to write a simple plugin that adds a new widget to WordPress. We’ll be using the new WP_Widget class, which is the newest method but means that the widget will only work in WordPress 2.8+. I know that 2.8 isn’t actually out yet, but it will be soon and there’s no sense in learning the old method.
The widget we’ll be creating will display upcoming posts (scheduled posts). A lot of sites schedule posts to automatically publish at a specific time, helping them keep a steady flow of articles. I know that I use this trick on Web Developer News and Attackr, and I’ll use it on this site as soon as I get some more articles written. Since the articles are already there and ready to be posted, why not tease them and give your readers something to look forward to? That’s exactly what this widget will do.
Filed under WordPress Widgets, wordpress development · Tagged with Wordpress, WordPress 2.8, wordpress development, WordPress Howto
Topics
- Acholi Beads (1)
- apache (1)
- BuddyPress (2)
- Community (1)
- CSS (1)
- General (4)
- JavaScript (4)
- News (1)
- Open Source (3)
- PHP (5)
- PrototypeJS (3)
- Script.aculo.us (1)
- Uncategorized (5)
- Web Design (11)
- Wordpress (16)
- wordpress development (6)
- WordPress News (9)
- WordPress Plugin Updates (11)
- WordPress Plugins (2)
- WordPress SEO (1)
- WordPress Themes (2)
- WordPress Widgets (2)
Recent Forum Posts
- Twitter Widget Translation
posted in forum Twitter Widget Pro by mail@lpmdesign.de on August 31, 2010 at 2:17 pm
- Move witter date to below twitter post
posted in forum Twitter Widget Pro by bert on August 26, 2010 at 8:39 am
- show random posts, If no related posts are found
posted in forum Efficient Related Posts by myrddin@web.de on August 25, 2010 at 11:07 pm
- twitter is up, widget is down
posted in forum Twitter Widget Pro by ajbiggie@gmail.com on August 23, 2010 at 7:06 pm
- suggestions
posted in forum Better Text Widget by NeilC on August 23, 2010 at 11:15 am
- Twitter Widget Translation
Popular Tags
aaron apache BuddyPress business Community drupal eCommerce Efficient Related Posts free freelancing Free Template google analytics htaccess JavaScript jquery magento marketing Matt Mullenweg MovableType News Open Source PHP prototype radio redirect Related Posts shortcodes State of the Word template twitter Twitter Widget Pro Upcoming WordPress Release Web Design web developers WordCamp WordCamp SF 2009 Wordpress WordPress 2.8 WordPress 2.9 wordpress development WordPress News WordPress Plugins Wordpress Plugin Update WordPress Themes xavisysXavisys Sites


