For some reason, WordPress’ “wp_get_archives()” function does not allow us to include or exclude categories by default. This is weird, because many other WordPress hooks include this basic functionality.
Thankfully, after struggling for a bit today, I discovered this plugin that solves the issue. It hooks directly into the WordPress core, so customizing is a breeze! Simply add “cat=5” (with the number “5” being the id of the category you want to include) to the “get_archives” parameters in your template file! It’ll look like this: <?php wp_get_archives(‘cat=5’); ?>
Pretty cool, eh?
More posts from themightymo.com
Today I had an issue where I needed to merge two folders, each of which contained many sub- and sub-sub folders that had lots of images. After a lot of trial-and-error and some Googling, I found the best solution is to use the “ditto” command in Terminal like this: That’s it! Hat tip to AppleInsider.
I wasted some time today to bring you (dum dum duuuuum!): Some Surprising Trends in Website Development!
I was recently asked to look into creating some secure http headers as well as forcing a website to load over TLS1.2+. Below are my “how to” instructions for updating these settings within WordPress and Cloudflare. Install & Configure the Cloudflare WordPress plugin. Make sure an SSL Certificate is installed on your host for your…