Software Engineering in WordPress, PHP, and Backend Development

Tag: WordPress (Page 198 of 219)

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

Looking For Blogging Interns For WP Daily

You guys know that I spend a significant portion of my time working with my team at 8BIT. We’re responsible for:

Earlier this week, we brought on our first developer intern for 2013. In addition to this particular role, we’re also looking to fill a blogging internship specifically for WP Daily.

Continue reading

The Pro WordPress Subreddit

One of the things that’s nice about the WordPress development community is that there’s no shortage of places to discuss what’s going on in the community.

Aside from chatting with people on Twitter, we can hop into IRC chats, listen in to other developer’s podcasts, and naturally read and respond to what other’s are writing on their blogs.

But late last week, I noticed the following tweet show up in my stream:

It’s been a long time since I’ve paid any attention to anything like Reddit – probably since college, but this particular subreddit caught my attention.

Continue reading

Save Custom Post Meta – Improving The Code

Comments are closed on this post. See the updated version for more information.

Last week, I was talking to a couple of developers on Twitter about some of the code that’s required to save custom post meta in WordPress when working with plugins or themes.

For the most part, good serialization functions are consistently formatted in the same way:

  • First, we check for security. If the security check fails, then we exit the function.
  • If security passes, then we proceed with our serialization functionality.

The thing is, the security checks are generally the same thing across the board so much so that you may even consider it somewhat of a boilerplate.

This seems like an opportunity to improve developer’s processes a bit by abstracting out some of the code that is used to save custom post meta data.

So let’s try this:

Continue reading

How To Get The Post ID By Post Meta Value

One of the nicest and most flexible aspects of the WordPress API is the ability to associate meta data with certain models – for lack of a better term – in the database.

That is, we can assign meta value to Users, Posts, Authors, and so on.

Retrieving the data is typically trivially easy. Simply supply the ID of the model in question and then pass the key value for said post meta.

But what if you need to get the post ID or post meta key by the meta value instead?

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑