Shortcodes in widgets

I just switched to this new theme, and I wanted to transfer over the customizations I made to the last theme. I was a WordPress n00b when I started the blog, and I did not initially use widgets. To transfer all my customizations over, I knew widgets would be the way to do it.

I have the Last.fm plugin, and I made mods to my sidebar.php file to include it before. All I needed to do this time was put the shortcode in a text widget, right? WRONG! I knew there had to be a way.

A quick google revealed this post on using shortcodes in widgets. It turns out it is super-simple, but does require editing the functions.php file. You simply add the following:

add_filter('widget_text', 'do_shortcode');

What a PITA!

frustration300x300

I got the seemingly ever-present message to upgrade WP, so I stupidly did. Then I could no longer log in!?! It kept saying my password was incorrect. I could not send myself a password reset because the mail server isn’t configured. Great.

After much searching and a lot of wasted time, I finally was able to manually change my password. The following pages came in very handy:

The MySQL Workbench tools were also invaluable, as it was much easier to download/install than to setup phpMyAdmin.

I am really hoping that this was in fact related to the install. I’d hate to think that somehow my blog login was compromised. It seems a bit too coincidental though, so it most likely was something upgrade-related. I’ll have to check out my other accounts though…