I recently became disgruntled with the way my blogs displayed search results. By default, WordPress blogs will show searched posts exactly as they might appear on an index or archives page: Typically as an extract, or perhaps even as the full entry.
This doesn’t help at all if you’re looking for something in particular – It’s a much better idea to show the post within the context of the search query, as real search engines do.
See it in practice here.
This is a fairly easy thing to actually get working in WordPress. It’ll take just a couple of minutes, and will make a big difference to blog visitors. Here’s how I did it.
I ♥ Alfred: Code execution extensions
Here’re two workflows I use to run PHP code (one which just executes it and shows the result in Growl, and one which copies the result to the clipboard), and a workflow that runs a snippet of C code. Of course, it wouldn’t take much to make workflows for many other languages, too.
Alfred 2 workflows
Now with live results! Hit enter to copy result to clipboard.
Run C Code.alfredworkflow
Run PHP Code.alfredworkflow
Older, Alfred 1 extensions:
Execute PHP Code.alfredextension
Execute PHP Code, Copy Result.alfredextension
Run C code.alfredextension