Mike Little https://mikelittle.org/ WordPress Specialist Tue, 09 Dec 2025 10:20:06 +0000 en-GB hourly 1 https://wordpress.org/?v=6.9.4 https://mikelittle.org/wp-content/uploads/2020/10/cropped-mikelittle-2019-500-32x32.jpg Mike Little https://mikelittle.org/ 32 32 Thoughts on Progressive Enhancement and Accessibility https://mikelittle.org/thoughts-on-progressive-enhancement-and-accessibility/ https://mikelittle.org/thoughts-on-progressive-enhancement-and-accessibility/#comments Wed, 25 Nov 2015 13:58:04 +0000 https://mikelittle.org/?p=791 My thoughts on the Rarst/Jo Hoyle Progressive Enhancement/accessibility thing.

Originally published at Thoughts on Progressive Enhancement and Accessibility.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
In response to all the billing and cooing over Automattic’s announcement/release of Calypso and the general excitement of WordPress’s upcoming REST API, Andry “Rarst” Savchenko wrote an article decrying the lack of progressive enhancement  being discussed or used in many of the examples.

Triggered (I presume) by Rarst’s citing the A Day of REST conference site as a an example of a site not using progressive enhancement (now removed), Joe Hoyle responded at length.

Here is my contribution to the discussion (I originally started it as a comment on Rarst’s site, but it outgrew that):


I presume from Joe Hoyle’s response and Rarst’s mention of removing specifics, that Joe’s REST conference site was highlighted as a bad example. So I understand the offended/defensive tone of his reply. Further, given the audience for that particular event and thus that site, I could regard it as a reasonable compromise to forego support for those without working JavaScript.

However, that does not apply to the rest of the web.

People not numbers

Joe, you quote some figures, quite small figures really. 1.1% of users don’t have JavaScript available; 5% of users running very old versions of Internet Explorer, even referring to 2.4% of screen reader users who don’t have access to JavaScript.
But the problem with those small numbers is that they are small percentages of very large numbers. So 1% of all web users is 30 million. And those users are people, not numbers.

But let’s look at just one of those numbers: the 2.4% of screen reader users who don’t have access to JavaScript. All of those people, by definition, have difficulties accessing the web: likely their only method of accessing the web is through a screen reader. And you imply that it’s OK to prevent them from accessing the web in the name of the latest shiny trends and to save some development time and cost. Actually I’m being polite, you don’t imply it’s OK, you said “I don’t care…” but I’ll accept you may be talking about one specific site.

Just from the RNIB figures in this 2014 report (PDF) there are 2 million people in the UK living with sight loss. If only half of them want to use the Web, then that 2.4% is really 12000 people you just excluded from the web.
Don’t forget: for many people with sight loss the internet is a lifeline helping them feel less isolated.

Blind users are not the only ones

And of course, visual difficulties are not the only reason people need accessible web sites. Those with motor difficulties, who can only use keyboards or special devices like braille readers, head wands, sip and puff controllers, etc. or simply those with unsteady hands that find a mouse difficult to use like the ever-increasing aged population, all need to be able to use the web too.

Time for honesty

These are real people you may walk past in the street this weekend. Be honest, do you really want to join Facebook, Netflix, American Express, and yes, Automattic and boldly say to them “I don’t care that you can’t access all of the internet”?

Originally published at Thoughts on Progressive Enhancement and Accessibility.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/thoughts-on-progressive-enhancement-and-accessibility/feed/ 6
Happy 12th Birthday WordPress https://mikelittle.org/happy-12th-birthday-wordpress/ https://mikelittle.org/happy-12th-birthday-wordpress/#comments Wed, 27 May 2015 22:56:46 +0000 https://mikelittle.org/?p=741 I almost didn’t write this post but it is time to celebrate WordPress’ 12th Birthday (12 years since the first release). But then I thought I wanted to say a couple of things. So, WordPress has come a long way. A huge collective of talented people maintain and improved every release. The business of WordPress is […]

Originally published at Happy 12th Birthday WordPress.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
I almost didn’t write this post but it is time to celebrate WordPress’ 12th Birthday (12 years since the first release). But then I thought I wanted to say a couple of things.

So, WordPress has come a long way. A huge collective of talented people maintain and improved every release. The business of WordPress is maturing at an increasing rate. The latest indicator being Automattic‘s acquisition of WooThemes. And WordPress itself is maturing. Some of the latest improvements, including those under the hood, show a maturing code-base. Albeit somewhat lagging in some people’s opinions. But that’s what almost 100% backwards compatibility gets you.

But one thing I don’t see much evidence of is the paths into WordPress development maturing. Getting started as a serious WordPress developer still seems too hard. It’s a journey fraught with poor examples, bad advice, and vaguely improving references. The docs team are doing a great job of replacing the ageing and increasingly dangerous WordPress Codex. But their efforts still seem centred around references.

References are great when you know what it is you need to look up. But if you don’t know what you need to look for, you end up hoping you will stumble upon something useful or relevant. I know the Theme Handbook is coming along nicely — hey! I learned some stuff from it last week — but the tutorial section slides right back into reference mode after just a couple of pages.

As WordPress heads towards it’s teenage years, I’d like to see some better resources for new developers. Both those new to development per se, and those experienced developers new to WordPress. I’ll be heading in that direction. I hope others will too.

Originally published at Happy 12th Birthday WordPress.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/happy-12th-birthday-wordpress/feed/ 5
WordPress news roundup #2 https://mikelittle.org/wordpress-news-roundup-2/ https://mikelittle.org/wordpress-news-roundup-2/#comments Tue, 14 Apr 2015 18:13:02 +0000 https://mikelittle.org/?p=724 The second episode of my WordPress news roundup. This month I decided to publish a podcast only version.

Originally published at WordPress news roundup #2.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
Welcome to my second WordPress News Roundup. This time I have recorded an audio only version. Let’s just call it a podcast! Give it a listen and see what you think.

You will find a transcript of the episode at the bottom of the post.

I welcome any feedback you may have. I’m also interested in any suggestions for topics or news to cover. Please leave a comment below.

Show notes:

(Links to references in the podcast)

Episode Transcript

Click to display transcript

Hi, it’s Mike Little here, and welcome to another of my WordPress news roundups. This one is number two.

So on the security front, there have been a number of security releases for some popular plugins recently Buddypress, the WordPress REST API, duplicator, WP Super Cache. Ironically, all in one WP security and many more. As usual, my advice is to ensure you update your WordPress site as soon as updates are available. If you don’t log in to your site every day, use a plugin like Updates Notifier, which will send you an email whenever updates are available, coupled with a good backup routine, this will help keep you safe. If you want to learn more about website security in general, subscribe to Sucuri’s blog at blog.sucuri.net. I’ll put a link to that in the show notes.

There’s a new plugin which claims to alert you of any plugins you have installed that have known vulnerabilities. This sounds like a good idea but my expectation is that any published vulnerabilities will only be known after the plugin author has had a chance to issue an update, so that one would hope you would already have the updated versions of any plugins this service knows about. Still, I’ll add a link to the plugin in the show notes and it’s something worth investigating.

The press this bookmarklet continues to be improved heading for WordPress 4.2 release. It was interesting to hear that although selected images are initially stored as URLs, when the post is published, the images are imported into your media library. This will prevent any inadvertent hot linking. I was also intrigued to hear it may eventually work on multiple sites though, not in this next release.

I’ve seen a lot of buzz around Google’s announcement that they will be expanding their use of mobile friendliness as a ranking signal. This change will affect mobile searches in all languages worldwide, and will have a significant impact in search results, they’ve said. The change is supposed to go live April 21, which is in itself interesting in that Google have pre-announced this algorithm change they did so back in February. The WordPress theme review team have some advice on their blog, and I’ll link to that. And you can use Google’s mobile friendliness testing tool to check your site. If your site does not pass their test, I recommend switching to a mobile friendly or mobile responsive theme unless you have the CSS skills yourself to fix the problem. On the whole, I see this as a good move. I do get frustrated by sites that don’t work well on my mobile phone and will quickly give up if they are too frustrating or too slow.

I spotted on Twitter that Stack Overflow have published the results of their developer survey and WP Tavern have highlighted that the survey ranks WordPress as the third most dreaded technology. Ouch. It also hurts that we are considered worse than SharePoint. Though I expect that’s because SharePoint developers generally have had some kind of formal training.

I was very interested to see that WP dev shed had published an article benchmarking the many WordPress caching plugins. It was interesting to see that such a large number of plugins on the test, many of which were new to me. It was nice that they ran all the tests on shared hosting to emulate the typical non technical user’s experience. Though their particular hosting service used an NginX proxy, which many do not. It’s a shame they went to so much trouble to document the results from tools like Google PageSpeed Insights and YSlow only to conclude that the results weren’t really applicable to the experiment. But when they did get onto the speed test, it was gratifying to find my particular go to caching plugin, WP Super Cache, ranked second overall. The winner though was rocket cache a new player in town, and it’s one I keep meaning to investigate.

I mentioned in my last roundup that WordPress 4.2 would support emoji characters. What is exciting is that technical changes to do that, more importantly, will enable WordPress to natively support Chinese, Korean and Japanese characters a great step along the way to WordPress being a truly international app.

It is interesting to see that the theme review company that company started recently by Emil Uzelac and just in tadlock to provide commercial theme reviews is considering plugin reviews too. They don’t yet offer the service on their site, so I haven’t seen any idea of pricing. But I’ll keep my eye open for the news.

I spotted an article on Microsoft’s place in the opensource world with a little speculation they might one day opensource Windows. WP talent had an article neatly summarising just how far the organisation has come. I still find people surprised when I tell them that an IIS version of WordPress is still maintained. and it is good to be reminded that they have sponsored WordCamps in the past and at least two major Microsoft sites run on WordPress, Microsoft Europe and Microsoft news centre.

Finally, I read a great article by Pippin Williamson about him and his team contributing back to WordPress. It’s well worth a read. If you make some or all of your living from WordPress, please do consider giving back to the wider community in some way. As his first commenter asked, there are many non coding ways to contribute, check out make.wordpress.org for details.

This has been a brief roundup of WordPress news I found interesting recently, I hope to bring you more in the next episode. If you have any ideas for topics or news you would like me to cover please leave a comment below. Or if you’re not listening to this on my site, go to mikelittle.org and look for the latest news roundup. I’m always glad to hear feedback. Thanks for listening. Bye

Originally published at WordPress news roundup #2.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/wordpress-news-roundup-2/feed/ 2
WordPress news roundup #1 https://mikelittle.org/wordpress-news-round-up-1/ https://mikelittle.org/wordpress-news-round-up-1/#comments Wed, 18 Mar 2015 17:23:41 +0000 https://mikelittle.org/?p=697 At the monthly WordPress user group I run here in Manchester, UK, I normally give a quick roundup of the latest WordPress news. This month I decided to share it with the wider world.
screen shot of video

Originally published at WordPress news roundup #1.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
At the monthly WordPress user group  I run here in Manchester, UK,  I normally give a quick roundup of the latest WordPress news. This month I decided to share it with the wider world.

Update: I’ve added the audio only version of this roundup. You can listen to it here. Just click on the player.

Update 2: There are now subtitles in English for the video. Click the “CC” button on the video player. You can also find a transcript at the bottom of this page.

References.

(Links to places mentioned in the video)

If you have any questions about any of the things  I covered, please ask in the comments below. And if you have any suggestions for what I should include next time, again, ask in the comments below.

Video and Audio Transcript

Hi, my name is Mike Little. I’ve been running a WordPress Meetup group in my local city Manchester here in the UK for about six years. Normally I present a roundup of recent WordPress news that I feel is worth sharing with the group. This month I decided to share it with a larger audience, hence this video. So without further ado, let’s get going.

On the subject of security, a critical SQL injection vulnerability was discovered and fixed in WordPress SEO plugin by Yoast. If you haven’t got the fixed version 1.7.4 or greater, you should update immediately. This bug was severe enough and the plugin popular enough that Yoast reached out to the wordpress.org plugin team. And they pushed out an automatic update to the sites that had the plug in installed and that had automatic updates enabled. A number of people were pretty upset about this. However, this wasn’t the first time it had happened. In 2014 major bug in jetpack prompted the team to automatically update millions of installations of jetpack.

If people want to, they can disable automatic updates for some or all of the options, that is WordPress minor updates, plugin updates, theme updates and WordPress major updates. But I urge anyone considering doing such a thing to consider it very carefully, and to make sure that you have an alternative strategy in place to be alerted to and handle critical updates. The upset around this automatic update that was pushed out was such that Dion Hulse needed to write a blog post on the make.wordpress.org blog to explain about those security updates. And pointing out that when these automatic updates were first released in WordPress 3.7 that the capability was always there to push out plugin or theme updates if the security issue was severe enough.

One of the good things to come out this very public fixing of a security issue is that a number of other plugins actually suffered from the same problem and they have been fixed now that the knowledge has come to light, and that includes BB press, and Gravity Forms. So, as usual, it is important that you keep up to date with all the security fixes all the bug fixes. With plugins, themes, and WordPress itself. Make sure you keep your sites up to date.

Code guard, a service that specialises in automated backups have published the results of a survey they carried out at the tail end of February. Although it was a small survey only answered by about 500 WordPress users. It was quite interesting the results that came out. 25% of respondents said that they received very little training in the use of WordPress. 22% hadn’t been trained at all in WordPress backup and had no idea how to do it. 21% had seen the White Screen of Death multiple times and quote, “it’s horrible” they said. To me, a disappointing 69% of respondents had had a plugin fail after an update, and 24% said it had happened many times.

My take is that everyone should be in control of their own backups or have an understanding of what backup measures have been put in place by their hosting provider, or by the people who set up the site for them. And any backup routine should meet the following minimum criteria.

It should have the ability to do a full backup. So data, uploaded files, WordPress, plugins, and themes.

It should be automated, you should never rely on your own memory to manually run a backup.

And ideally it should be stored off site. If the server goes down. You need to be able to get at your backup files.

And you should know how to restore from your backup or know someone who can do it for you. Even if you have to pay them.

Backups are important. They should be part of your normal day to day site management.

WordPress 4.2. Beta one is now available for testing. Some interesting changes going into this version, the “press this” bookmarklet feature has been totally redesigned to be more intuitive. And it works on mobiles now. If you don’t know what that is press this has been around since, well, since the early days of WordPress, and it’s a bookmarklet. You drag it to the top of your browser. And as you browse around the web, you can use the bookmarklet to create a draft post of the page that you’re looking at.

There’s been a little bit of controversy around this improvement to the press this bookmarklet which I find quite surprising. People have been claiming that it encourages users to breach copyright. I find it surprising because a) the functionality hasn’t changed since the early days of WordPress when this was first introduced. And it’s also always included a link back to the source of the content that you might be blogging about. So I’m going to ignore that controversy. I think it’s more about people who didn’t know this feature existed.

There’s also expanded support in the core for emoji, not something that I have an interest in. in fact, my day to day usage of emoji is probably limited to smiley face, sad face and maybe winking face. But I’m sure people will love this.

The plugin installation and update process has been made smoother. You can now do plugin updates in place on the plugins page instead of needing to go to the updates page.

On the more technical side, one aspect of the taxonomy roadmap has been implemented. Terms shared across multiple taxonomies will now be split into separate terms when one of them is updated.

An exciting improvement to the admin screens for me is the addition of new accessibility functionality. This is a JavaScript function that allows your JavaScript routines to talk to screen readers to better inform impaired users what is happening on screen

Browsing and switching installed themes has been added to the customizer to make switching faster and more convenient. This means that whilst you’re using the customizer, you can now switch between your themes to see exactly what your changes will look like with a different theme. You no longer need to come out of the customizer in order to switch themes to try a new look on your site.

If you want to test any of these features in this beta install it on a test or local site, not your live site, and start testing. If you find any issues please do report them to the development team. Any feedback is useful to them and can be a great way to contribute to making WordPress better.

In passing I noticed that the WordPress Foundation website has been redesigned For those who don’t know the WordPress foundation is the charitable organisation founded by Matt Mullenweg to further the mission of the WordPress open source project. As it says on the site, the point of the foundation is to ensure free access in perpetuity to the software projects it supports. It doesn’t get updated much, but there is some old but informative information on there. Check it out.

Delicious brains have published an in depth guide to the WordPress database. It’s quite useful summary of the WordPress database schema includes descriptions of the tables, the columns and the usage of the data and also has a couple of diagrams of the relationships between the tables. I commented with a couple of corrections which they’ve now Incorporated. So if you want to find out more details about the WordPress database beyond the information in the Codex, then do check out this article.

On wordpress.org there’s been a security white paper published as part of the about section of that site. It’s an analysis and explanation of the WordPress core software development and it’s related to security processes. It’s a pretty good document goes into quite some detail about the various aspects of how WordPress is built, the processes around that, and how the major, the 10 major security areas are addressed by WordPress. I noticed that they are looking for translators. So if you do have a second language other than English, please do contribute and help get that paper translated.

Both the WordPress plugin directory and themes directory have launched a new design in the last few weeks. Go check them out. They now much more resemble the experience you get in your WordPress admin screens.

Speaking of wordpress.org, the WordPress version stats have been updated. Although the display of the stats is pretty much the same as it was before. What’s interesting is that the calculations have been updated to ignore old sites that are no longer actually running. Or at least those that haven’t pinged WordPress.org in the last few months, it’s much more satisfying to see a full 36% of sites running 4.1. Previously, the out of date stats had the figure as low as 10%. More deep delving into the data will be available in the future, or maybe available in the future. For example, how many of those running the latest version of WordPress are actually running it on very old versions of PHP, look out for further changes to this area of the site.

Another change on wordpress.org is that the plugins now show more accurate ratings data. That’s because the rating system has been reset and rebuilt by Samuel Otto Wood. The ratings now correspond exactly with the reviews. Previous ratings that didn’t have an associated review have now been removed given that we have a big enough body of reviews to count. This is also eliminated leftover counts from known spam ratings. A much better improvement and hopefully given a much more accurate understanding of popularity of plugins.

That was my roundup of recent WordPress news. I hope you found it useful. You can find links to all the things discussed accompanying this video. Until next time, see you.

Originally published at WordPress news roundup #1.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/wordpress-news-round-up-1/feed/ 4
WordPress–12 years since the beginning https://mikelittle.org/wordpress-12-years-since-the-beginning/ https://mikelittle.org/wordpress-12-years-since-the-beginning/#comments Sun, 25 Jan 2015 01:35:30 +0000 https://mikelittle.org/?p=677 As WordPress enters its 13th year, it's interesting to reflect on what has been achieved in the last 12.

Originally published at WordPress–12 years since the beginning.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
As WordPress enters its thirteenth year, it’s interesting to reflect on what has been achieved in the last twelve.

Twelve years ago today, I left a comment on comment on Matt Mullenweg’s blog (back when it was photomatt.net) that kicked off a fork of the un-maintained b2/Cafelog blogging software that turned into WordPress!

From those beginnings WordPress has matured into a world-beating open source CMS. B2/Cafelog was used by perhaps 2,000 bloggers. Now WordPress runs millions of sites around the world. In fact over 23% of the web and still growing!

WordPress has had an interesting year as usual

For me, the past twelve months have been a mixed lot. Personally, I failed to meet a some key goals I set myself. Perhaps because I set too many! In other areas, things have gone well.

One of the things I helped to organise last year was WordCamp Manchester, where we kept it almost 100% local speakers, managed to achieve 50% female speakers on both tracks. Videos of all talk are available on WordPress.tv. We also had a well attended Contributor’s day.  We are hoping to run another successful WordCamp Manchester later this year too.

My WordPress training has gone very well this year. I’ve really enjoy teaching in the classroom and interacting with the attendees. It’s personally very rewarding.

The Manchester WordPress User Group I run has gone from strength to strength with some great speakers and talks throughout the last year and plans for more this year. Our Meetup membership has grown to more than 500.

Out in the wider world, WordPress has continued to grow and gone from strength to strength. WordPress supports a world-wide, billion dollar, industry from WordPress specialists like me (I’ve completed my sixth year trading as my company zed1.com); growing WordPress-based companies like Human Made; through to multi-million dollar companies like CopybloggerWooThemes, and of course Automattic.

As usual, praise must go to the fantastic community around WordPress, and the awesome power of the GNU GPL open source license.

Here’s to the next year

I predict it will be another great year for WordPress. I hope it will be a great year for me and you too.

How has your WordPress year been? And how do you think the next will be? Leave me a comment below and let me know.

Update: HumanMade, now sixteen strong, can hardly be described as ‘small’.  I updated their mention.

Originally published at WordPress–12 years since the beginning.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/wordpress-12-years-since-the-beginning/feed/ 3
Happy 11th Birthday WordPress https://mikelittle.org/happy-11th-birthday-wordpress/ https://mikelittle.org/happy-11th-birthday-wordpress/#comments Tue, 27 May 2014 09:51:10 +0000 https://mikelittle.org/?p=510 Happy 11th birthday WordPress! The software celebrates eleven years since the first release today!

Originally published at Happy 11th Birthday WordPress.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
WordPress Logo

WordPress passes another year, it’s eleventh, gaining strength at every step. The last year has seen the software and, more importantly, the community only get better.

Across it’s life from the humble beginnings through the first release, and nearly 90 more releases  to the current version 3.9.1, it has come to dominate the CMS world with a market share of 60% and the general web with over 22% of all websites. Happy 11th birthday WordPress!

As always, WordPress owes its strength to the fantastic community around it.

I am continually excited about WordPress and its future. In particular, I am more than pleased that in the UK this year we will have at least four WordCamps; Sheffield we already had, with Manchester, Bournemouth, and London to come.

The number of local meet-up groups is growing too: my own Manchester WordPress User Group goes from strength to strength, other established groups continue to thrive, and yet more have started, are re-starting, or are in the planning stages.

I’m happy to call myself a WordPress Specialist and work 100% exclusively with WordPress. WordPress changed my life and WordCamps and the WordPress community continue to enhance it; how has your life been affected by WordPress?

Originally published at Happy 11th Birthday WordPress.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/happy-11th-birthday-wordpress/feed/ 1
WordPress–11 years since the beginning https://mikelittle.org/wordpress-11-years-since-beginning/ https://mikelittle.org/wordpress-11-years-since-beginning/#comments Sun, 26 Jan 2014 15:37:53 +0000 https://mikelittle.org/?p=482 As WordPress enters its 12th year, it's interesting to reflect on what has been achieved in the last 11.

Originally published at WordPress–11 years since the beginning.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
As WordPress enters its twelfth year, it’s interesting to reflect on what has been achieved in the last eleven .

Eleven years ago today, I left a comment on comment on Matt Mullenweg’s blog (back when it was photomatt.net) that kicked off a fork of the un-maintained b2/Cafelog blogging software that quickly turned into  WordPress!

From those humble beginnings WordPress has matured into a world-beating open source CMS. B2/Cafelog was used by perhaps 2,000 bloggers. Now WordPress runs almost 75 million sites around the world. That’s now over 22% of the web!

WordPress as an industry continues to grow

WordPress supports a world-wide, billion dollar, industry from  WordPress specialists like me (I’ve completed my fifth year trading as my company zed1.com); small WordPress-based companies like Code for the People and Human Made; through to multi-million dollar companies like CopybloggerWooThemes, and of course Automattic.

Praise must go to the fantastic community around WordPress, the singular vision of Matt Mullenweg, and the awesome power of the GNU GPL open source license.

Here’s to the next year

Last year saw the releases of versions 3.6, 3.7, and 3.8. Each improving in many ways on what as become the world’s favourite CMS. WordPress 3.9 is being worked on now, and I predict it will be another great year for WordPress.

Update: This should have been published on the 25th, but I seem to have missed clicking the publish button!

Originally published at WordPress–11 years since the beginning.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/wordpress-11-years-since-beginning/feed/ 3
WordCamp Lancaster, UK 2013 https://mikelittle.org/wordcamp-lancaster-uk-2013/ Tue, 09 Jul 2013 20:23:52 +0000 https://mikelittle.org/?p=356 This coming weekend is WordCamp Lancaster, and I am really looking forward to it.

Originally published at WordCamp Lancaster, UK 2013.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
This coming weekend is WordCamp Lancaster, and I am really looking forward to it.

Although we have an active local WordPress community, especially the regular (and irregular) attendees of the monthly Manchester WordPress User Group I run, I look forward to meeting WordPress enthusiasts from the wider UK community as well as a few international travellers who attend.

This year looks to be as well attended and full of interesting speakers, with a full and varied schedule. I’m looking forward to several of the talks. I’m running a two-hour “Starting out with WordPress” workshop on Saturday morning again this year, and I’m also part of the “Site Doctors” session on Sunday.

WC13-Header2

There are still tickets available, so if you want to take part in a two-day WordPress un-conference with three tracks and a “Happiness Bar”, a free t-shirt, a mug, and sponsored drinks at the Saturday night social all for just £35,  grab one now.

Originally published at WordCamp Lancaster, UK 2013.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
How to Embed a Tweet in a WordPress Post or Page https://mikelittle.org/how-to-embed-a-tweet-in-a-wordpress-post/ https://mikelittle.org/how-to-embed-a-tweet-in-a-wordpress-post/#comments Fri, 05 Jul 2013 15:24:46 +0000 https://mikelittle.org/?p=329 To embed a tweet in a WordPress post or page takes three simple steps.

Originally published at How to Embed a Tweet in a WordPress Post or Page.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
If you want to embed a tweet in a WordPress post or page, WordPress supports a really simple way to do it. It takes just three simple steps.

Step 1

Start with the URL of the tweet. The easiest way to get that is to look at the tweet on its own and not on the Twitter homepage or in someone’s twitter stream. Click on the timestamp just to the right of the tweet. It usually has the age of the tweet like “30m” or “4h” or else a date like “2 Jul”. Once on that page showing just that one tweet (and maybe some replies), copy the URL from your browser’s address bar to the clipboard.

Alternatively, right-click the timestamp link and select “Copy link address” or whatever your browser uses.

Image shows the location of a tweet's URL

Step 2

Next, back in your WordPress dashboard, paste that URL into your post or page on a line on its own. Make sure it is not a link, just plain text.  If it does get pasted as a link (it will show blue and underlined) you can click once in the link and click the “unlink” toolbar button.

paste_tweet_URL

Step 3

Publish your post or page and enjoy a fully interactive tweet embedded on your site. It’s as simple as that.

Even the “Follow”, “Reply”, and “Retweet” buttons work.

embed a tweet in a WordPress post

The Result: An Embedded Tweet

Here’s an example embedded in this post.

Update: If it Doesn’t Work

If it doesn’t work for you and your site just shows a link, it will be because your browser has pasted the URL as a link into your post or page. To remedy it, follow these steps:

  1. Edit your post or page.
  2. Click once on the Twitter URL.
  3. Click the “unlink ” button in the toolbar.
  4. Update or publish your post or page.
Unlink_a_link

Have you tried this yourself? Did you manage to get it working? Let me know in the comments below.

Originally published at How to Embed a Tweet in a WordPress Post or Page.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
https://mikelittle.org/how-to-embed-a-tweet-in-a-wordpress-post/feed/ 50
Replacing a filter in a Twenty Twelve Child Theme https://mikelittle.org/replacing-a-filter-in-a-twenty-twelve-child-theme/ Mon, 01 Jul 2013 00:05:15 +0000 https://mikelittle.org/?p=303 Replacing filters set up in a parent theme like Twenty Twelve can be tricky.

Originally published at Replacing a filter in a Twenty Twelve Child Theme.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>
I was asked a few weeks ago:

I’m trying to change the order of the <title> tag so it reads “site title | page title” instead of the standard “page title | site title”. I know it’s bad SEO, but the client is adamant this is what he wants!

Now, Twenty Twelve sets up the title tag on your page using a filter function in it’s functions.php file. The header.php simple contains this code:

&lt;title&gt;&lt;?php wp_title( '|', true, 'right' ); ?&gt;&lt;/title&gt;

The function in functions.php looks like this:

function twentytwelve_wp_title( $title, $sep ) {
global $paged, $page;

if ( is_feed() )
return $title;

// Add the site name.
$title .= get_bloginfo( 'name' );

// Add the site description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description &amp;&amp; ( is_home() || is_front_page() ) )
$title = "$title $sep $site_description";

// Add a page number if necessary.
if ( $paged &gt;= 2 || $page &gt;= 2 )
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );

return $title;
}
add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

Twenty Twelve adds it’s function to the 'wp_title' filter.

One possibility: Add a second filter

One solution might be to add your own filter to the chain in your child theme; set it on a lower priority so that it runs after Twenty Twelve’s function; and change the title tag that way. In this particular case — swapping the order of the two parts — that might be quite hard. Theoretically, you could split the title on the separator character ($sep) and swap the two halves. But that assumes the separator character will never appear in either the site name or a page/post title. Hmmm… quite risky.

A better solution: Replace the filter

A better solution is to replace the filter in your Twenty Twelve child theme with your own. You need to hook your own function to the filter in your child theme’s functions.php file. Remember you can’t use the same function name as Twenty Twelve. You could do it like this:

add_filter( 'wp_title', 'z1_twentytwelve_wp_title', 10, 2 );
function z1_twentytwelve_wp_title( $title, $sep ) {
global $paged, $page;

if ( is_feed() )
return $title;

//strip out separator already added by wp_title()
$title = str_replace( $sep, '', $title);

// Add the site description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description &amp;&amp; ( is_home() || is_front_page() ) )
$title = "$site_description";

// Add a page number if necessary.
if ( $paged &gt;= 2 || $page &gt;= 2 )
$title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) );

// Add the site name before the rest.
$title = get_bloginfo( 'name' ) . ' ' . $sep . ' '      . $title;

return $title;
}

Note: I’ve given my function a unique name by prefixing it with ‘z1_’, and I’ve also kept the same priority. I’ll be removing Twenty Twelve’s function so it doesn’t matter.

Removing the original hooked function

In order to remove a filter we simply call remove_filter() with the same parameters as the add_filter call.

remove_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );

However, your child theme’s functions.php runs before Twenty Twelve’s does. That means that when your call to remove_filter() runs, Twenty Twelve hasn’t yet called add_filter(). It won’t work because there’s nothing to remove!

Instead you need to hook a new function to the after_setup_theme action and call remove_filter() from there.

add_action( 'after_setup_theme', 'z1_turnoff_twentytwelve_title' );
function z1_turnoff_twentytwelve_title() {
remove_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 );
}

Huh? What’s that doing?

Here I’ve created a new function z1_turnoff_twentytwelve_title() and hooked that to the after_setup_theme action, where I can now call remove_filter().
In other words the sequence of events for replacing a filter in a Twenty Twelve child theme goes like this:

  1. WordPress does all it’s start up stuff and calls your child theme’s functions.php.
  2. Your child theme adds a filter for wp_title, and hooks a function to the after_setup_theme action.
  3. WordPress calls Twenty Twelve’s functions.php which also adds a filter for ‘wp_title’.
  4. WordPress runs do_action('after_setup_theme') (because the theme is now set up).
  5. Your function hooked to that action gets called…
  6. … and it removes the Twenty Twelve filter!
  7. Leaving your filter in place.

See http://pastebin.com/hFWgc1p4 for a complete example.

The take away

It can be tricky understanding that code outside any function definitions in your files (functions.php or plugin files) is executed by PHP as soon as the file is loaded and parsed. Which is completely different from when WordPress calls your functions in those files. Often that immediate execution by PHP is far too early unless it is simply hooking on to filters and actions. That’s one of the reasons the filters and actions system works the way it does, so that WordPress will call your code exactly when you want it to, rather than when PHP loads it.

I hope that helps some of you out there. If you have any questions about this, please ask below. If you have other WordPress questions you want answering, let me know in the comments below.

Originally published at Replacing a filter in a Twenty Twelve Child Theme.
Copyright Mike Little. All rights reserved. Mike Little - WordPress Specialist.

]]>