Securing WordPress

I panicked quite a bit when I discovered someone had been repeatedly hitting  xmlrpc.php on my install of WordPress. I didn’t realize it was happening until my host alerted me that I was potentially going to exceed resources for the month. I wasn’t sure what the cause of the overage was initially, so I had to… Continue reading Securing WordPress

Super Ginormous Alpha

It’s far from complete, but Super Ginormous is available on GitHub. It requires a fork of Tersus that will soon be merged – if approved ;) – into the core theme code. Check it out if you get a chance. I’d love to hear what you think. Got any specific requests on what you’d like… Continue reading Super Ginormous Alpha

Tersus Development

Over the next few weeks, the design of this site is going to evolve. I’m working on the first of several child themes for Tersus. Our original plan was to include several “flavors” but they did too much and limit others and their ability to build on top of what we’ve done. If you have… Continue reading Tersus Development

Add a Tweet Button to WordPress Posts

Want to add a Twitter Tweet button to your WordPress posts? It’s super easy: Horizontal Button: Tweet [php] <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php echo get_permalink(); ?>" data-count="horizontal" data-text="Check out <?php the_title(); ?> on < ?php bloginfo( ‘name’ ); ?>" data-via="YOURUSERNAME">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> [/php] Vertical Button: Tweet [php] <a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php echo get_permalink(); ?>" data-count="vertical" data-text="Check… Continue reading Add a Tweet Button to WordPress Posts

Published
Categorized as Wordpress

How to display total number of Custom Posts on a WordPress site

Based on this quick tip from WPRecipes, I was able to quickly figure out how to count and display the number of Custom Posts (of a particular type) that I had on a site. [sourcecode language=”php”] <?php $numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE (post_status = ‘publish’ AND post_type = ‘listing’)"); if (0 < $numposts)… Continue reading How to display total number of Custom Posts on a WordPress site

Published
Categorized as Wordpress

Badges

Here are some 125×125 badges I made for Wordcamp Atlanta: And some 300×75 badges:

Post Thumbnails in RSS feeds

the_post_thumbnail is one of my favorite additions to WordPress 2.9, but I recently ran into a problem… the images I had set as my post thumbnails weren’t being included in my RSS feed. Assuming you’ve already added support for thumbnails to your theme, you should be able to add this snippet to your theme’s functions.php… Continue reading Post Thumbnails in RSS feeds

WordPress 2.8 beta1 Released

WordPress 2.8 beta1 was just released.What’s new? Lots, apparently. If you’re using WordPress 2.7.1 and want to upgrade using Tools > Upgrade all you have to do is open /wp-includes/version.php and change the version number from 2.7.1 to 2.8. Then run Tools > Upgrade. The latest development version will be installed when you upgrade. Note,… Continue reading WordPress 2.8 beta1 Released

WordPress 2.7 Comments Not Threading

Having problems getting WordPress 2.7 Comment Threading to work on your site? Unless you’re using one of the default themes provided with each version of WordPress, chances are your theme isn’t ready for comment threading when you upgrade to WordPress 2.7. To enable comment threading, you need to do the following: Enable comment threads in… Continue reading WordPress 2.7 Comments Not Threading