WordPress Tutorials
Add a Submenu to the WordPress Admin Bar
A while back I wrote Add Menu Items to the WordPress Admin Menu, a post detailing how you can add items to the left side, existing "posts" menu bar. Adding menu items has served me well but it's not as customized as I would like --...
500
Over the past four or so months, I've been having a hell of a time with seeing 500 errors on my site. And while I'm on my site a few hours a day, the amount of 500s my visitors must have seem is probably huge. And that's...
Append and Prepend to WordPress RSS Feed Content
The awesome part of RSS is that it lets you pull content wherever you want. The bad part, as a publisher, is that the user may be missing out on important information that is on the site but doesn't display in articles. WordPress' hook system to the rescue! The PHP We're going...
Preprocess Comment Content in WordPress
I've put a great amount of effort into making sure the comment system on this blog is fast and feature-filled. The comment system is AJAX-based so you don't need to worry about page refreshes. You can also post links to GitHub gists, CodePen pens, and JSFiddle fiddles and...
How I Stopped WordPress Comment Spam
I love almost every part of being a tech blogger: learning, preaching, bantering, researching. The one part about blogging that I absolutely loathe: dealing with SPAM comments. For the past two years, my blog has registered 8,000+ SPAM comments per day. PER DAY. Bloating my database...
Prepend and Append Text to WordPress Titles
I was thinking about little ways to improve my blog and one small enhancement I wanted to make was adding more information to post titles when they show up in RSS feeds. Something about notifying the user via title outside of the site itself seemed like a good...
Remove WordPress Admin Bar CSS
A version or two back, WordPress decided to add a toolbar for logged in users on the display side that's about the site's theme. I get why they did it but it's an annoyance to me -- I don't care to see it. To accomplish this...
Add Menu Items to the WordPress Admin Menu
The existing menus in WordPress are solid but one annoyance is that I need to click "All Posts" and then the "Drafts" link to get to my drafts; I simply want to get there as quickly as possible via the Posts menu. I did...
Pygments on PHP & WordPress
I've been in a long journey trying to find a great code highlighter, I've been using a lot of them that I can't even remember. These are the ones I can remember right now: SyntaxHighlighter Google Prettifier highlighter.js Geshi Right now I'm using
highlighter.js
but it wasn't exactly what I...Sort Objects by Property with PHP
I recently needed to display a list of authors within a WordPress blog. The goal was to sort the author list by number of posts before outputting the list. The method for calculating number of posts isn't a sortable key within WordPress'
get_posts
, so I had...