Running WordPress? On shared hosting? Does the word caching make you nervous? Well worry no more. Here’s your beginner’s guide to caching in WordPress in just three easy steps:
Install Quick Cache. Since succeeded by Comet Cache.
- Keep refreshing different pages, marvelling at how fast your site is now
And that’s it folks. I’ve installed Quick Cache on most of my sites in the past month or so and it does make a substantial difference to page load times. Enjoy!
One of the 500 reasons why I switched to WordPress from Drupal lies below. If you’re reading this as a non-coder, please simply understand that this markup is absolutely heinous, overcomplicated and completely unnecessary.
<!-- main row: width = grid_width -->
<div id="main-wrapper" class="main-wrapper full-width">
<div id="main" class="main row grid16-16">
<div id="main-inner" class="main-inner inner clearfix">
<!-- main group: width = grid_width - sidebar_first_width -->
<div id="main-group" class="main-group row nested grid16-16">
<div id="main-group-inner" class="main-group-inner inner">
<div id="main-content" class="main-content row nested">
<div id="main-content-inner" class="main-content-inner inner">
<!-- content group: width = grid_width - (sidebar_first_width + sidebar_last_width) -->
<div id="content-group" class="content-group row nested grid16-11">
<div id="content-group-inner" class="content-group-inner inner">
<div id="content-region" class="content-region row nested">
<div id="content-region-inner" class="content-region-inner inner">
<a name="main-content-area" id="main-content-area"></a>
<div id="content-inner" class="content-inner block">
<div id="content-inner-inner" class="content-inner-inner inner">
<h1 class="title">Front Page</h1>
<div id="content-content" class="content-content">
For the sake of context, and humour, the same markup in WordPress could easily look like this:
<h1 class="title">Front Page</h1>
ht to @ncbeets for reminding me of exactly how happy I am with WordPress.
After a few weeks of planning, photographing and coding, Matthew and I launched his new site this week.
Built with WordPress, the wonderfully extendable HTML5 theme, Toolbox from Automattic, and featuring Backstretch, a jQuery plugin from Scott Robbin, to make the backgrounds flex and stretch across the screen.
The site has already been picked up by Design Fridge and The Best Designs. Lets just hope some of the flood of new visitors are music fans!
I’ve probably looked up code examples for
query_posts() more than anything else in the whole Codex. I need to commit a basic example for myself, and in the hope that it will benefit others trying to do this basic, basic thing.
$args = array(
'cat' => '44',
'post_type' => 'post',
'posts_per_page' => 15,
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
while (have_posts()) : the_post();
This basic query will go find the last 15 posts in category 11. Just as easy as that. There’s a bunch of other filters you can append to the query or add to the query array:
cat=11&year=2009&tag=design to bring back all articles tagged with design in category 11 that were written in the days of yore (2009).
Paste this code into your template files (with surrounding PHP tags) for a quick way to show your posts on a page, on a footer or sidebar, or wherever else you want.
There were dozens and dozens of WordCamps all over the world last year. But as far as I know, there wasn’t one here in St. John’s. I’ve got a site almost finished to see if there’s any interest around town.
In the meantime, tweet widely and see if we can drum up a crowd for a day-long WordPress love-in this summer. Here’s a small corner of what I’ve got started: