by Floyd Hartford | Apr 30, 2023 | PHP, Website Development
Here’s a WordPress shortcode to display a “last modified” date on your website’s posts or pages if and only when the modification date is different than the date the post was published. The idea is to show the last modified date to let readers...
by Floyd Hartford | Apr 12, 2023 | PHP, Website Development
In this article, I’ll show you how to add a CSS class to the body tag using WordPress. Why would you want to add a class to the body element on your WordPress website? Well, WordPress has a comprehensive templating system and lets you create an infinite amount...
by Floyd Hartford | Apr 5, 2023 | PHP, Website Development
In this article, I will show you how to programmatically add images to a WordPress post using the absolute URL for an image file hosted externally from your website. Why would you want to do this? Well, maybe you want to use an image on another server or website as...
by Floyd Hartford | Mar 20, 2023 | PHP, Website Development
Ever wanted to add a custom column to your WordPress dashboard’s posts list page? How about adding a custom column to the WordPress dashboard’s posts list page programmatically without using a plugin? Yes, NO plugins. In this article, I’m going to...
by Floyd Hartford | Mar 12, 2023 | CSS, PHP, Website Development
Wouldn’t it be really awesome if customers could view the products on your WordPress website that come in a specific color? It’d be great to have a color wheel for them to choose any color in the rainbow and all products within a range of the chosen color...
by Floyd Hartford | Feb 28, 2023 | PHP, Website Development
In this article, I will explain how to remove a word from the end of WordPress post titles using regex inside of a PHP function that can be added to your WordPress theme’s functions.php file. Here, the method’s action runs on the init hook, which will...