Software Engineering in Web Development, Backend Services, and More

Tag: WordPress (Page 134 of 220)

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

WordPress Meta Data: Other Data (Not IDs)

Yesterday, I talked about some of the advantages of using IDs when working with various pieces of WordPress data and populating different input elements, saving it to the database, and more.

For certain types of data, this works well; however, this may not always be true especially as it relates to data types such as taxonomies. This is going to be most notable in WordPress 4.2.

Taxonomy Term Splitting

Taxonomy term splitting coming in WordPress 4.2

If you’re an experienced developer, then I recommend reading the blog post linked above; otherwise, suffice it to say that using IDs may not always be the best option depending on if you’re doing a database migration (and how that migration might be done).

So what else are we left to do?

Continue reading

WordPress Meta Data: Use IDs (Not Titles)

One of the features that I’ve often found myself having to implement when building custom solutions for others is implementing some type of select box – be it multi-select or single select – or another similar input element that’s [naturally] populated with a list of option elements.

These options may consist of posts, pages, custom post types, categories, taxonomies, etc. It doesn’t really matter what type of information it includes, but it does matter how the information is populated.

Continue reading

Use Your WordPress Powers For Good

This past weekend, I had the opportunity to speak at WordCamp Atlanta about the Importance of Following The WordPress Coding Standards.

I had a blast talking with the audience, meeting new people, answering questions, and being exposed to some ideas and techniques that I’d not previously considered.

Following The WordPress Coding Standards

During the talk, a friend of mine happened to snap a picture of two young guys – between 11 – 13 years old or so – sitting on the front-row of the presentation.

Since I tend to be protective about sharing pictures of my own kids online, I’ve opted not to share the picture here, but it doesn’t matter – the important thing is that there were young kids present at this WordCamp soaking up every word that was being present and even asking questions.

This is something that I’ve yet to see at a WordCamp – at least in Atlanta – and it’s really got me excited for the future of computer science, of WordPress, and of programming in general.

Continue reading

Avoid Loops With save_post in WordPress

When working on WordPress projects, there may be times during which you have to do some sort of processing on the content or attributes of the post before saving it to the database.

There are a number of ways to do this, but one of the most straightforward ways to go about it is to setup a custom function hooked to the save_post action and then handle the attributes of the post in that function.

If you opt to go this route, there are a few considerations that you need to make (mainly that help you avoid some type of infinite loop) in order to properly adjust the content to your liking.

Continue reading

« Older posts Newer posts »

© 2026 Tom McFarlin

Theme by Anders NorenUp ↑