Software, Development, and WordPress

Category: Articles (Page 2 of 236)

Personal opinions and how-to’s that I’ve written both here and as contributions to other blogs.

Add Custom Link to All Posts Screen Based on Post Meta Data

TL;DR: This article outlines the code needed to add a custom link on the All Posts screen that uses a custom piece of post metadata.

Note: A few months ago, I wrote an article on how to add a custom view to the All Posts screen. This article is not all together the same, but not all together different. Think of it as a more detailed and perhaps for more practical implementation of the concept.

Assume that you have a standard post type or a custom post type and you’re going to simply filter by a headline that you define using a mechanism that allows you to save data to the post_metadata table.

For example, let’s say that you have a post and it as a piece of meta data with:

  • a meta_key with the value of article_attribute
  • a meta_value with the value of headline

And you want to use this information to add a new Headlines link that automatically filters everything out except articles with that metadata.

Here’s how to do it.

Continue reading

Sort WordPress Posts By Date

TL;DR: If you’re looking for an easy way to sort WordPress posts by date (be it descending or ascending) in the administration area without having users click on the Date column header, you can do so through the use of the pre_get_posts filter that provides a reference to the instance WP_Query running on the page.

For examples in code on how to do that, check out the rest of the article.

Continue reading

An Introduction to DevKinsta

TL;DR: For how much this post may sound like a paid or promoted review, it’s not. The short of it is that I’ve been hosting this site on Kinsta for a few years now and I’ve been happy, and continually impressed at their offering so when they announced their DevKinsta application, I was just as interested to try it out as I have been with Local, Valet, MAMP, and others.

In short, DevKinsta bills itself as a way to:

Design, develop, and deploy WordPress sites from the comfort of your local machine. DevKinsta is free forever, and available for macOS and Windows.


But rather than walk through whatever videos and other collateral the site has to offer, I thought I’d go through the process of setting it up from download to site setup, from creating a site, to loading it in a browser, and taking a look at how everything is set up within the file structure.

Continue reading

Merry Christmas and Happy Holidays (From 2020 to 2021)

If you’ve read my blog for at least a year, then you know that I usually take the time between Christmas and New Year’s to stay offline and visit with family and friends.

Obviously, this year is a little different for everyone but we’re fortunate enough to be surrounded with many who are near-and-dear.

Though I don’t do long retrospective posts, I do like to recap some of the things that have happened through the course of the year both offline and online.

Continue reading

Privacy on the Web, 2020

Back in 2019, I started writing a series of posts around the idea of how to maintain privacy on the web (because it was a growing concern at least for me). As I wrote then:

For many of us, we’re well aware of the privacy implications of the software and services many of us use on a day-to-day basis even if we’re not sure just how this information is shared.

14 March 2019

Things haven’t slowed down with regard to privacy and though I’m still consistently on the lookout for different services, utilities, applications, and so on, I thought it might be useful to round up everything that I’ve drafted thus far.

So here’s a rundown of material I’ve covered in both 2019 and 2020.

Continue reading
« Older posts Newer posts »

© 2021 Tom McFarlin

Theme by Anders NorenUp ↑