Software Engineering in Web Development, Backend Services, and More

Category: Notes (Page 39 of 50)

Notes on programming-related problems that I’ve encountered while working on various projects.

Dynamically Creating a Custom Stylesheet For WordPress Plugins

For more technical users or to skip the the background explanation, skip directly to the code.

One of the challenges that comes with building WordPress plugins is supporting the conflicts that ensue with other poorly coded plugins and/or poorly coded themes.

It’s just the nature of the beast.

When it comes to addressing the way a plugin or widget looks on the frontend, I’ve often advised users to modify the plugin’s stylesheet in order to achieve the results they want.

Unfortunately, this is problematic for a number of reasons.

Continue reading

Contributing To WordPress 3.5

By nature, the idea behind open-source software is awesome: a group of people contributing their time to building something greater for others to use.

For the longest time, I’ve been someone who has often benefited from open source, but aside from contributing tickets, bug reports, or documentation, I’ve never actually contributed code to an open source project.

Contributing to WordPress 3.5 is the first time that I’ve ever contributed code to a project, and I couldn’t be happier that it’s on an application that’s such a significant part of my career.

Continue reading

Redirect Non-Administrators After Login in WordPress

For more technical users or to skip the the background explanation, skip directly to the code.

When it comes to building themes or plugins in WordPress, you rarely want administrators, editors, subscribers, and so on to anything other than the dashboard just after they’ve logged in.

After all, these authors are usually loggin in to write posts, edit their information, or generally manage their content.

But if you’re building a more advanced theme or an application, then allowing users to view the dashboard may be outside the scope of what you’re looking to allow.

As such, here’s an easy to redirect non-admin users to another page after logging into WordPress. Note that this post was updated on December 13, 2012 thanks to the recommendations in Simon’s comment.

Continue reading

Show The Date on Every Post in WordPress

When it comes to displaying the date on blog posts, many WordPress themes – not all, but many – opt to display the date on the most recent post of the day, and then simply display the title and the content for the rest of the posts throughout the day.

This results in the content feed looking something like this:

But not everyone likes that. Luckily, there is an easy fix for this.

Continue reading

Happy Thanksgiving!

Happy Thanksgiving 2012

Happy Thanksgiving!

If you’re here in the United States, then you’re likely celebrating Thanksgiving. I’m spending time resting, eating some awesome food, visiting family, and generally enjoying the time off.

For those of you who aren’t in the US, hopefully you’re having a stellar day, as well. Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑