Add Word Count to Single Posts in WordPress
This is just a quick little snippet to display a word count on the single post page in WordPress. Since it requires being placed within the loop, you can actually…
This is just a quick little snippet to display a word count on the single post page in WordPress. Since it requires being placed within the loop, you can actually…
Over the past few months, I’ve been working on a new premium theme for WordPress that would feature a single post on the home page. The one issue I needed…
I needed to list all of the available icons from Font Awesome 4.1.0 in order to allow users to select one. The code for the selector was easy enough but…
For the longest time, I had hooked into the default search and comment form to add HTML5 features for my themes. With the release of WordPress 3.6, a new core…
I had previously written about how you can easily trim your text using a build in WordPress function called wp_trim_words() but sometimes you actually want to trim your text to…
It took me a while to actually figure out the name of this type of operator since trying to search “PHP” and “question mark” didn’t really result in anything useful.…
I published a tutorial quite a while back called Simple Voting for WordPress with PHP and jQuery. It was not without its problems, and recently I needed to improve on…
Converting certain values back and forth is often necessary when developing functions to help your website work the way you want it to. I needed a function that would convert…
This is just a little snippet of code I wrote to count the number of hits on a specific page. I only wanted it to work on single post pages…
When accessing the database in WordPress, you need to use the global variable $wpdb. This will take the constants you set in wp-config.php to connect to your database and retrieve…