Welcome to Redradar!

I'm Kelly, and I'll be your host today. I'm a recent grad trying to keep busy before going to grad school in fall 2010. I have interests and a resume, if you're looking for a short-term (6-9months) web developer (though long-term is a possibility too). I also have wordpress plugins & other projects; I'm currently working on a twitter/trending topics application for linux; and sometimes I talk about interesting tech topics. I hope you enjoy your stay, and come back often! (alternately you can follow me on twitter, or grab my RSS feed)

Log in?

Name:
Pass:
Show me?

An update!

Posted on Feb 02, 2009 at 02:21 PM

So I suppose I should write an update. I’ve got another plugin in the works, it’s essentially done but it’s very simple, and there are more features I want to add. It’s basically a horizontal navigation menu of your pages. So yes, it’s essentially wp_list_pages() in plugin form. But! Stylized a bit to be not so much a list as multiple levels. Anyway. It’s the kind of plugin that probably exists 100 times over and possibly better, but I was getting sick of using wp-andreas09’s navigation for a project at work and decided I could do so much better.

In any case, I’d like to add the ability to also display post categories, and whatever else you may want to have on a navigation bar. I’ll release the basic one first though, likely through WP’s plugin system (subversion? really? seems like an awful lot of touble just for a plugin…). Then I’ll probably work concurrently on a next version incorporating the above, and forked version which will allow dropdowns, if only because I just discovered jQuery and want to play. Or maybe some other functionality abusing jQuery (I don’t know why I hadn’t heard about this before, but I love it!).

Anyway, aside from plugin news I’m finally opening this site up for real, with just a warning. Since I’m never going to stop playing with the design of it anyway. So, ‘perpetually under construction, please watch for falling code.’ And now to play with plugins some more (… what homework?).

Category Intersection Plugin

Posted on Dec 26, 2008 at 08:15 PM

Description: Enables intersection of categories: [your url]/?cat=1,2&and=1 will show posts only in both categories 1 and 2. [your url]/?cat=1,2&and=0 is the default functionality (shows posts from categories 1 or 2).
Author: Kelly Dwan
Version: 0.2
Wordpress 2.6 – 2.8

My first foray into the world of wordpress plugins, born of need for exactly that functionality. None of the functions we looked into seemed to work properly (there were conditions on the categories, it didn’t work with this version of wordpress…) so it seemed easier to write it myself.

To install, simply add the intersection.php file to your wp-content/plugins directory (remove the .txt extension), and activate the plugin. If, for some reason, you’re still using ver 0.1, and add the line:
<?php if ( function_exists('intersection') ) intersection();?>
in the header template (header.php).

I definitely welcome any comments or feedback, and if there are any questions I’ll try to answer as best I can.
EDIT 02/01/09: Clear up installation instructions.

EDIT 02/02/09: Edited meta in file header with a link to this exact post.

EDIT 06/13/09: New version with hooks, so you don’t even need to add code.

« Newer Posts

Powered by WordPress