WordPress's menu feature is a fantastic way of creating a hierarchical menu, but unfortunately you still have to keep your pages in their own, separate hierarchy, using a horribly cumbersome interface, or a special plugin. The code snippet below will … [Continue reading]
Automatically add Lorem Ipsum text to blank WordPress pages
Posted on April 23, 2012 Written by 2 Comments
If you're creating a new Wordpress theme, it can be helpful to have some filler text in your pages. The snippet below adds a few paragraphs of lorem ipsum text to any blank post or page by filtering the_content. The text is retrieved from the … [Continue reading]
Caching a downloaded file
Posted on March 27, 2012 Written by Leave a Comment
It's often useful to download external files such as RSS feeds, Twitter feeds and so on. But you'll also want those files cached, so that you're not downloading them on every page view. Thankfully, WordPress provides two functions that make … [Continue reading]