Fixing the “-2” in WordPress Category Slugs

I was asked to look at a WordPress site that needed help with their pretty URLs. Most of them worked just fine, but a few of the categories had “-2” at the end of them, and they wanted that removed. The “-2” normally signifies that it’s a duplicate, but they did not have any duplicate categories. So what was causing the “-2”?  Continue reading “Fixing the “-2” in WordPress Category Slugs”

Fixing Author Names in Pretty URLs in WordPress

When you activate Pretty URLs in WordPress, the author URLs appear to use the author’s login name. This is not entirely true as it is using a different field in the database, but it defaults to the same value. This is not great for security or for SEO. Continue reading “Fixing Author Names in Pretty URLs in WordPress”

Hate to Love Them, Love to Hate Them

Here is my latest editorial for the April 2014 issue of php[architect] magazine:

php[architect] - April 2014

Hate to Love Them, Love to Hate Them

PHP used to be a small, inconsequential thing – a fad that would pass with time. Though some do still try, it’s not possible to say that now. PHP has come into its own, and like any large-scale entity, a set of leaders has emerged. This is not to say that every project isn’t important and useful in its own way. Everything we build has a purpose (even if it’s sometimes just to remind us what not to do). However, some projects have outpaced the others, setting the trends that the rest of us, whether we like it or not, need to follow if PHP is going to have a unified front moving forward. Continue reading “Hate to Love Them, Love to Hate Them”

WPML Pages Keep Reverting to Default Language

I’m working on a website that is using the WordPress Multilingual plugin (WPML) to support having the site translated into multiple other languages. I have English set as the default language and then 12 other languages activated. We added the content for all of the additional 12 languages, and everything was working great. We’ve now run into an issue, though, that every time we update the English version of the page, all of the other language versions reset back to English. Continue reading “WPML Pages Keep Reverting to Default Language”