Today I needed to exclude a category from the main WordPress posts feed, the one you’ll find at http://mywordpresssite.com/feed/; however I didn’t want to exclude posts in that category from other feeds (especially not from that category’s feed at http://mywordpresssite.com/excluded-category/feed/). Here’s how I set about it…
Category Archives: Work
WP Super Cache and WP Touch (Pro)
On one client’s site we’re using WP Super Cache and WP Touch Pro, and it bothered me that while WP Touch Pro ensures that mobile users get a lovely optimised theme, it wasn’t serving cached pages for those queries. Until recently we were hacking both WP Super Cache and WP Touch (pre-Pro) to achieve this, …
Scaling WordPress & Co-ordinating Code at WordUp Whitehall
Thanks to Simon Dickson for inviting me to speak at WordUp Whitehall, a specialist and informal one day WordPress conference for people working in UK Government. I don’t do enough speaking, something I need to address, and this was a great opportunity to share some of the knowledge gained from working on relaunching the recent …
Continue reading “Scaling WordPress & Co-ordinating Code at WordUp Whitehall”
Mine ears have attended dConstruct 2010
I remember seeing the speaker list for dConstruct 2010 go up and thinking “that is so so awesome, I am definitely going to that”: Merlin Mann, Tom Coates (particularly), John Gruber. Amazing. Then this summer it was decided that we should have a family holiday, with my in-laws, between the 21 August and the 4 …
Including data in the page for your plugin’s JavaScript
Nip over to Otto’s blog and read his post entitled don’t include wp-load, please which I’m in complete and total agreement with. I’d like to add to the solutions with the following method of adding data to your page for use by your plugin’s JavaScript: wp_localize_script.
Taking stock
I have a client with a lot lot lot lot of WordPress sites, and I’m helping them craft a strategy for dealing with WordPress throughout their business. One thing we wanted to do was to take stock of all the plugins they have installed on all their sites, work out how many are in common, …
Eeek! The load-page-new.php and load-page.php actions have vanished!
So WordPress 3.0 is out, and some of the useful admin area load-* hooks that I use have vanished or changed. To refresh your memory, there are individual and specific hooks which run whenever WordPress loads an admin page. These hooks are named after the PHP file in the URL to the admin page, for …
Continue reading “Eeek! The load-page-new.php and load-page.php actions have vanished!”
Live text streams for the National Care Service
We were approached by the Department of Health to further enhance their WordPress based website for the launch of the National Care Service. The launch was to have a live web video stream and The Department of Health wanted live text updates to accompany the video. The text updates would allow late comers to catch up, …
Continue reading “Live text streams for the National Care Service”
Thickboxing in WordPress themes
The lovely Thickbox jQuery plugin appears to no longer be supported by it’s creator, Cody Lindley, but it’s included with WordPress (it provides the “popup” overlays in the post editor for uploading and inserting images and other media), very flexible and that’s good enough reason for me to use it for the time being. I’ve …
Ordering post meta value, numerically
I have a client who wants to show a list of their posts ordered by the numerical value of a post meta field (custom fields are referred to as post meta data in the WordPress code, so I’ll be following that convention from now on). Unfortunately there doesn’t seem to be a way to do …