WordPress Tips & Plugins for Those “Oh $#!%” Moments
It’s happened to all of us at one time or another. We work hard to build a website that is nearly flawless (in our eyes, anyway) and then a client comes along with a “suggestion” that blows it all to bits. Then, there are those times when we ourselves make a boneheaded mistake that means we’re going to have to rip things up and try to piece it back together again.
Not so fast. When working with WordPress, there are indeed some built-in features, best practices and plugins available that can help us in these moments. Perhaps they can’t fix everything, but they can at least make the task easier to manage. Here are a few notable selections that you’ll want to check out the next time $#!% happens.
Tips and Tricks
Use Post Revisions
Raise your hand if you’ve ever made a huge mistake while editing a page or post (both of my hands would be up if I weren’t currently typing). The good news is that WordPress Revisions can easily bring back previous versions of a page – leading to a major sigh of relief. One thing to note is that, when creating custom post types, you have the option of whether or not to keep revisions. It might be worth turning them on.
Back It Up
If you’re in the development process, make sure to create backups as you hit various project milestones. This will be an invaluable resource that allows you to wipe out mistakes or misunderstandings in a hurry. And, if your site is live, backing up daily is a must.
Comment Your Code
Much is made about well-commented code and there’s a good reason for it. This very small step lets you (or others) see where you implemented specific features that will need future maintenance. Just write out some basic details of what the code does and make notations in other key spots.
When you do have to go back and make changes, you’ll have a better understanding of where you need to go and what you need to do.
Don’t Blow It Up
If you’ve made a mistake or a client has radically changed their way of thinking, it’s easy to want to blow the whole thing up (often in a fit of rage). But don’t panic. Instead, take a bit of time to think things through and see if anything can be salvaged. There may be ways to keep at least part of the work you’ve already done and reuse it.
And, even if you do ultimately knock everything down and start over, keep copies of everything you’ve done. You never know when something may be needed again down the road. Like when the client has another change of heart.
Working with WordPress custom post types makes content management so much easier in that it provides a clear way to separate different types of posts. But sometimes the needs of a site change and posts have to be moved from one type to another. Post Type Switcher does this with ease, adding a “Post Type” dropdown box when editing a post. Where it really comes in handy is when bulk editing posts, as you can move multiple posts in just a few clicks.
Whether you’re switching domains, adding SSL or need to change all instances of a specific URL, Velvet Blues Update URLS is a huge timesaver. While there are a host of search/replace tools out there (including the one below), this one is just for finding and replacing URLs. That’s a nice limitation to have, because it can save you from accidentally replacing something in the database that you shouldn’t. Note that it won’t change the base URL of your site, nor will it replace hardcoded URLs in widgets or theme option pages. It’s best used for swapping URLs within posts, pages and references to media files.
There are times when you need to find and replace specific text strings in your site’s database. This is when you can turn to Better Search Replace to get it done. Be careful though, as the plugin will allow you to choose which database tables you want to include in the operation. It’s always a good idea to create a backup first – just in case. You can also use the “Dry Run” option to see what will be affected by a search/replace before running it for real.
As an administrator, it’s good to know what other users that access the WordPress Dashboard are up to. Simple History is a helpful utility that keeps track of who does what. It’s not only important for keeping track of any unwanted user actions, but also helps to retrace your steps when something goes wrong. You can find, for example, which plugins were activated or deactivated. This is a handy bit of information when troubleshooting.
Over time, a site may see changes in its URL structure. Or it may be that a client has changed their mind about where something should go. Whatever the case, adding 301 redirects for outdated content are an important step in ensuring users can find what they’re looking for. Redirection will help you take care of those items in quick fashion. But you can also use it to redirect users based upon their login status, browser, referrer and more.
So often, we get requests to make a page or even a product look like “that one” already on the site. Rather than attempt to recreate a piece of content, use Duplicate Post. It’s capable of copying over only the parts of a post that you want and giving you a faster method of getting things done.
WordPress plugin updates don’t always go smoothly. In fact, one tiny bug in an update can render a site broken. WP Rollback is there for such occasions, as it allows you to “rollback” a plugin or theme to a previous version. Note that it only works with plugins in the official WordPress.org repository – so keep in mind that it can’t save you from issues with commercial products. But it’s a quick and handy option when you need to restore something to a more stable version.
Turning “Oh $#!%” to “Oh Yeah!”
Part of being a web designer (and being human) includes both making mistakes and dealing with others who change their minds without warning. How do you deal with it? It’s really a mix of having processes in place to help you reverse course and having the necessary tools to provide an extra helping hand. Using the tips and plugins above will put you on the right path towards making the best out of those unexpected moments.
The post WordPress Tips & Plugins for Those “Oh $#!%” Moments appeared first on Speckyboy Web Design Magazine.