Here’s how to delete all the terms in a taxonomy, whether it be category, tags or a custom taxonomy. Most sites will never need to do this – and there are probably better ways to do this – but here’s the code anyway.
Continue reading
Author Archives: Stephen Cronin
Actionable Analytics (WordCamp Melbourne)
This page contains resources relating to my “Actionable Analytics” talk at WordCamp Melbourne on 27 April 2013.
Video
Slides
Alternatively, you can download the slides in either of the following formats:
Questions
If you have any questions about the talk, feel free to ask. I’m pretty busy, so apologies in advance for any delay in responding, but I will try to answer genuine questions.
I’m probably most responsive on Twitter, but feel free to leave a comment here as well.
jQuery To Select Duplicate Posts In WordPress Admin
I have to wade through masses of user submitted posts and it’s always a pain to try to spot duplicate submissions. I therefore came up with the following jQuery code that identifies duplicates (based on title) and selects all but the first, so I can then delete them. Continue reading
Stop Category Pages From Showing No Results Message
If you have a category page which has no posts, it will normally trigger your theme’s no posts found message. Seems sensible! However, I have an edge case where I don’t want that message displayed.
Continue reading
How To Prevent Category Widget From Using Category Description As Title Attribute
The Categories widget in WordPress uses the category description as the title attribute for the list items displayed by the widget. While this may be great for very short descriptions, it doesn’t make sense when longer descriptions are in use.
Continue reading
How To Create A Silo Structure In WordPress
Siloing is an SEO technique that creates strong keyword related themes on your site, improving the relevancy of your site in the eyes of the search engines. In this article, I cover the basics of the silo model and then show you how to implement siloing in WordPress.
Continue reading
Siloing Your Site For SEO Success – Links
Links relating to my “Siloing Your Site For SEO Success” talk at WordCamp Sydney on 22 July 2012.
Continue reading
JavaScript To Convert Bytes To MB, KB, Etc
I’m currently writing a converter for the HAR file format, which is used by Firebug, Chrome Developer Tools, JMeter, etc to record information about a page loading. The HAR format stores the size of downloaded components in bytes. I wanted to convert this into KB, MB, etc, for display.
Continue reading
WordPress And Government
Sadly, the vast majority of issues outlined below are still relevant in July 2013.
Some of the issues I mention below, such as update frequency and automatic updates, have been topics of recent discussion in the WordPress community, following Matt Mullenweg’s announcement in his State of the Word 2013 talk that we’re moving toward more frequent updates.
This has provoked further discussion in the community about the impact of this on the enterprise, most notably in Chris Lema’s Developing WordPress for the Enterprise article.
Having said that, today I learnt of one state government department here, which has gone with WordPress for 3 of their sites. None are huge, but it’s encouraging to hear!
This article extends my presentation, titled “WordPress and Government – the Australian Perspective”, originally given at WordCamp Gold Coast on Sunday 6 November, 2011.
You can view the video of my talk and download the slides on my WordCamp Gold Coast 2011 – WordPress in Government post. I won’t include the video here because things have moved on in the time since I gave the talk.
Continue reading
WordCamp Gold Coast 2011 – WordPress in Government
I gave a talk titled “WordPress and Government – the Australian Perspective” at WordCamp GoldCoast on Sunday 6 November, 2011.
Here is the video of my talk, via WordCamp TV.