Wordpress
Is this thing on?
It’s been ages since I’ve touched this site other than to update the stuff powering it, and the web & WordPress have changed immensely since I started working on the Tersus child theme I reactivated. As WordPress went ahead with Gutenberg and its new block system, I started building sites with Beaver Builder and I didn’t look…
Read MoreSecuring 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…
Read MoreSuper 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…
Read MoreTersus 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…
Read MoreAdd 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…
Read MoreHow 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)…
Read MorePost 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…
Read MoreWordPress 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,…
Read More