How to create a custom menu widget in WordPress

WordPressOne of the relatively new things I like most about WordPress is the custom menus feature, which was first introduced in version 3.0. For pretty much all of my latest projects, I use the custom menu feature exclusively when it comes to menus. Many themes have menu locations that you can create your own menu and then plug it in. For instance, my favorite theme, Genesis by StudioPress, offers 2 locations that I can make custom menus.

But for this one project I’m working on, I wanted to make a menu that can also appear in my sidebar as a widget. Hmmmm…

[Read more...]

Create a dynamic calendar with PHP & jQuery

So I’m working on a project where I have to put together a calendar feature that will eventually hold various tasks. So after a looking around the Internet, I found this Simple PHP Calendar to help me get the ball rolling. For the record, I don’t love the code provided here, but it was really easy to follow and there were some areas where I could improve the code. So yes, I’m going to show you some of the code that I lifted (and edited slightly) from mentioned blog post, plus I’ll show you the jQuery/JavaScript code I wrote to switch between months. I’ll try and explain as best I can from start to finish. And please, if you have any further improvements to my code, let me know in the comments. I’m not going to cover any ajax stuff in this post, but I’m thinking maybe I will follow up with it in a part 2 eventually.
[Read more...]