Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 175 of 219)

Articles, tips, and resources for WordPress-based development.

Add a Custom Wrapper To The WordPress More Tag

Most of the popular CSS frameworks that are available today offer some sort of grid system for us to use such that we can arrange our content in rows and columns. This is advantageous for a number of reasons, the least of which is not for aiding responsive design.

When it comes to WordPress, one of the most common elements that authors will use is the `more` tag.

Just as there are times where we may want to indicate that a class has (or doesn’t have) a `more` tag, we may also want to wrap the tag in a row with columns on either side of the tag.

This gives us flexibility in styling the tag not only by helping to place the text by using columns and/or offsets, but also by taking advantage of a grid in the context of responsive design.

Continue reading

Add a Post Class in WordPress: The More Tag

WordPress’ `post_class` function makes it really easy to write out a variety of class names to post containers that give us a finer-level of control when working on styling WordPress posts.

But there are times in which you may want to actually add a custom class to a post (or to a single post) depending on the nature of the content of the most.

And sure, you can easily add additional parameters to the `post_class` function, but those are still static parameters that will be applied to every posts.

What about in cases where you want to add a class if, say, no more tag is present in the content?

Continue reading

Am I Using Sass in WordPress? Yes and No.

After talking about my post-Standard plans yesterday, I received several questions – some on Twitter, some via email – about my use of LESS rather than Sass since Sass is going into WordPress core.

It’s a good question, to be sure, and it’s one I’ve thought about since this ticket in Trac. Since I’ve been using LESS for over a year in various projects, I’ve had to decide how I want to move forward with development of those projects and future projects, as well.

Continue reading

How To Setup a Custom Grunt Task For WordPress

Now that WordPress 3.8 is in development, now is a good time to look into contributing a patch.

But seriously, if you’re looking into contributing to the codebase, then it’s important to be familiar with two things:

Once you’ve gotten those two things setup, you can actually setup customized Grunt tasks (via your own options) that will help test the work that you’re doing without kicking off the entire process, a part of the process, or testing individual files.

Continue reading

The Paralyzing Fear of Committing To Open Source Code

One of the things that I think scares people off from committing to open source projects is the fear of “I don’t know where to start.”

Sure, there are other reasons as well:

  • “I can’t make the IRC/chat/AOL/whatever meetings.”
  • “I don’t understand half of what the others are talking about.”
  • “I only know how to work with [any given language].”
  • “I don’t think that I have enough experience.”
  • …and so on.

Honestly, you can rationalize your way out of anything that you’re afraid to do with a reason for which most people can’t fault you.

But if you’re even mildly interested in committing to an open source project – or, more specifically – helping out with WordPress, then I highly urge you do so.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑