In the last few months, I’ve been working with Jekyll, a light-weight, Ruby-based, and Markdown-friendly framework for creating static blogs and sites right in your favorite text editor, so I wrote a guest post, “Introducing Jekyll” on the new UW-Madison Devblog. Check it out!
I’m back in school for my PhD, and getting ready to conduct research on a HUGE Twitter dataset on the US 2012 presidential election collected by the Social Media and Democracy research team at UW-Madison. We’ve been brushing up on Python, Hadoop and MapReduce. As part of our training, Alex Hanna, a sociology PhD student at UW-Madison, put together an excellent series of workshops on Twitter (or, as he’s aptly named them, “Tworkshops”) to get us started. Check them out!
We have all been there: for some reason, you really need to display a list of posts within a page in WordPress (and the list needs to be paginated, of course). Fortunately, there’s an easy way to do it.
Convert your post’s custom fields into tags automatically in WordPress with this nifty script!!!
Here’s how to enable the “excerpt” box for your WordPress pages.
Here’s a new tiny function that will help you run PHP code in WordPress only when you (or other admin-level users) are logged in.
“Invalid label” Firebug error with jQuery getJSON Be Sociable, Share! Tweet
Although displaying all your latest posts in Wordpress may seem like a no-brainer (after all, the default home page already displays your “Latest Posts”), doing so is kind of tricky if you are trying to do it in on a custom page.
Here’s a little code that can help you accomplish that.
When developing for WordPress, sometimes you may need to create a PHP script that will automatically login a user so you can enable user functions. The WorpPress function wp_singon() is the perfect solution.
Sometimes you may want to center a div element within a page, whether vertically, horizontally, or both (dead center). Here’s how you can accomplish all of that using CSS.
Sometimes you may want to load a CSS stylesheet dynamically after your HTML page has loaded and certain conditions are met (for example, if an element with a specific class exists in the DOM). jQuery can help you accomplish that with a few lines of code, helping you save some bandwidth and make your page load faster.