New Plugin
Since I’ve been adding a lot of new features to the site I’ve noticed that my functions.php file is getting a little hairy, so I’m putting all of this code together into a new plugin. I’m sure that there are existing plugins that do some of this stuff already (custom avatars, social network links, listing of site users), and then there’s always BuddyPress, but creating this new stuff as a plugin will help me keep things nice and tidy. I am having a little problem though. I built a shortcode to display the site’s users but when I add it to the end of the page I want it on, the output is showing up before the content. Anyone have the solution?
xentek 9:43 pm on January 19, 2010 Permalink
I would recommend that each discrete bit of functionality be put in its own plugin. This will make it much easier to maintain, debug, reuse, and (possibly even) release the code.
Mark 12:50 pm on January 20, 2010 Permalink
This one’s pretty small though. I don’t think it can be more than 250 lines. Just adding extra user meta, hooking into the gravatar function, then calling everything into a list with a short code. Trust me, I’m way too lazy to have this become a headache for me in the future. That’s good advice in general though.
btw, we didn’t see you last week. do you not like beer or something?
xentek 2:38 pm on February 5, 2010 Permalink
I’m in Chicago now, so its a bit harder to pop down to the meeting. I should be back in April for a little while though.