Roll your own!
|Popular Posts ShortcodeIn my recent post, DIY WordPress Popular Posts, I share a simple, two-step technique for tracking and displaying popular posts on your WordPress-powered site. That post describes everything needed to fully implement DIY popular posts, but some folks wanted an easier (more convenient) way to display the list of popular [...]||DigWP Site RedesignAfter rocking our site's previous design for nearly four years, it was time for a refresh. Actually complete overhaul is more like it, a top-to-bottom restructuring and streamlining of DigWP.com. Going into the redesign, the goal was twofold: 1) visually keep things as focused and clean as possible, and 2) [...]||DigWP Theme Updates!Quick post to announce updates for all DigWP themes, free and exclusive. All of our themes are current with the latest version of WordPress, and include lots of new features, bug fixes, and enhancements. 100% ready for action :) The free themes are all free and open-source for everyone, and [...]||WordPress Post Navigation Redux (New Tags!)For years WordPress post navigation has been possible thanks to a flexible set of five functions, including posts_nav_link(), next_post_link() and next_posts_link(). These navigational functions continue to work great in many WordPress themes, but there are newer, even more flexible functions available to theme developers. Introduced in WordPress 4, these new [...]||Stop Ruining the WordPress Admin AreaI guess what I was trying to get at with my previous poll about too many plugins was the idea that a lot of WordPress sites that I see these days are just absolutely trashed in the Admin Area due to inconsiderate, poorly planned plugins and themes. For users, a [...]||How to Remove Items from the WordPress ToolbarThe WordPress Toolbar makes it easy for plugin and theme developers to add links and other items. This is great news if you find the added links useful; otherwise, the additional links may be more of a nuisance, cluttering up your current workflow. For example, the database-backup plugin UpdraftPlus adds [...]||Complete Guide to WordPress Admin NoticesAs you work in the WordPress Admin Area, you'll undoubtedly encounter "admin notices" that let you know about errors, updated settings, required actions, and so forth. Most default admin notices are provided by WordPress out of the box, but it's up to plugins and themes to provide any custom notices [...]||DIY WordPress Popular PostsOver at my code snippets site, I keep track of the most popular posts and display a list in the sidebar. It's an easy way to highlight the site's best content and share top snippets with visitors. There are numerous plugins available for displaying your site's popular posts, but they [...]||Disable Open Sans Google Font on FrontendWorking on the 2020 theme for my book, WordPress Themes In Depth, I noticed that WordPress was including a stylesheet from the Google API. Closer examination revealed that the styles were adding the Open Sans font via Google Fonts. The font itself is great, but I could not figure out [...]||How to Include Styles in WordPress Child ThemesThis DigWP tutorial explains the "new" way to include parent stylesheets in Child Themes. I put the word "new" in quotes because the technique actually has been around for years, but there are many developers and designers who still use the old @import way of adding parent styles. This tutorial [...]||Tips to Keep WordPress SecureWith each passing day, strong security becomes more important. This article explains some ways to keep WordPress secure while improving the overall security of your WordPress-powered site. Most of the tips provided here are practice-based security steps that require no plugins or hacks. The idea here is that you don't [...]||Poll: How Many WordPress Plugins is Too Many?A frequent question in the WordPress community is "how many plugins is too many?" We've heard responses that vary from "zero" to "no limit, man". So for this DigWP Poll, I figured it would be interesting to see what people think about it. To give you a better idea, I've [...]||Pro Version of Block Bad QueriesBBQ Pro is the premium version of my free security plugin, Block Bad Queries. BBQ Pro helps keep your WordPress-powered site safe and secure by blocking bad URI requests. This helps to conserve precious server resources like memory and bandwidth. BBQ Pro runs silently in the background, checking all incoming [...]||SES Pro – Ajax Powered Email Signup FormsSES Pro is a premium email newsletter plugin for WordPress. It is 100% shortcode-based with Ajax-powered signup forms that can be displayed anywhere. There are no monthly fees or limits on the number of subscribers, how many emails you can send, or anything else. It’s just a lightweight yet full-featured [...]||Book Giveaway!To celebrate Thanksgiving, we're giving away three copies of Digging Into WordPress! Winners will receive full access to the Members Area here at DigWP.com to download current versions of the book and all exclusive themes and bonus material.||WordPress Themes In DepthSuper stoked to announce my new book, WordPress Themes In Depth! It covers the entire process of setting up, development, distribution, and everything in between. WordPress Themes In Depth is literally overflowing with over 450 pages of in-depth theme-building action. And it includes example themes and lots of project demos. [...]||WordPress Backup and Restore Theme OptionsAfter taking the time to set a whole bunch of theme options, it's nice to be able to make a quick backup of your theme settings. Many themes have this functionality built-in, but for themes that don't, here is a plug-n-play snippet to create a "Backup/Restore Theme Options" page. You [...]||H5 Theme UpdateTheme update! The H5 Starter Theme is all updated and afresh for your theme-building adventures. The previous version of H5 still works great, but there was a lot of room for improvement, especially with all of the new features and functionality made available in recent versions of WordPress. So now [...]||Disable Default Dashboard Widgets in WordPressContinuing with tips for customizing the WordPress Dashboard, here is a look at one way to remove unwanted widgets and clean up the default WP Dashboard.||DigWP Update – Version 3.8Digging Into WordPress update! The book is now current with the latest version of WordPress, 3.8 "Parker". The Parker update is focused primarily on improving the appearance of the Admin Area, along with the usual blend of bug fixes and enhancements. As with all DigWP updates, the new version is [...]||Bring Back Single-Column DashboardAfter updating to WordPress 3.8, the single-column Dashboard disappears with no options to bring it back. For years, users could set the number of columns in the Dashboard to suit their needs, but apparently some brilliant decision was made to just remove it. Personal opinions and feelings aside, here is [...]||Getting WordPress Background Updates to WorkThe new background updates feature in WordPress 3.7 is great for security and productivity, but it can be tricky getting it to work. This post explains how the same technique posted here also worked for enabling background updates.||Book Sale and GiveawayTo celebrate the new design and book update, we're giving away 5 free PDF copies of Digging Into WordPress and having a Fall Book Sale!||Book Update: Version 3.7Digging Into WordPress update! Version 3.7 of the book is updated for WordPress 3.6 and 3.7 (beta). As with the previous 10 updates, everyone who owns the book gets the new version for FREE.||Site RedesignWell sort of.. more like a design "refresh" really. DigWP.com launched in May 2009 with its first (brown) design. Then later that year the site was redesigned for the launch of the book. The second (blue/grey) design was well-suited for the site and a natural progression from the first design, [...]||DIY Alternative to WordPress SEO PluginsMost SEO plugins have way too many bells and whistles for my simple needs, so I wrote a little snippet that's meant as a drop-in, DIY replacement for the big WordPress SEO plugins. If you want a lot of features and options, then try Yoast's awesome SEO plugin or the [...]||New Book! The Tao of WordPressI'm excited to announce the launch of my 3rd book, The Tao of WordPress! Every page of The Tao of WordPress is carefully distilled, refined, and focused on WordPress. I wrote this book for beginners, students, designers, admins, enthusiasts, and anyone who wants to rock their own WordPress-powered site.||Post Format Archives WidgetCustom Post Formats enable you to customize your asides, images, and other types of posts. Doing so is a great way to bring character and definition to an otherwise amorphous collection of regular posts. Then, as your custom-formatted posts grow in number, your site will feature uniquely styled archives for [...]||Find the Perfect ThemeI've been working with WordPress for about 2 years now. I've set up dozens of websites for both myself and clients and finding the perfect theme has always been a bit of a chore. Don't get me wrong, I love that there are so many to choose from, but now [...]||WebHostingBuzz GiveawayWe've teamed up with WebHostingBuzz to present you with a superb hosting giveaway for 2013. WebHostingBuzz is providing the following great prizes: three lucky winners will pick up an entire year of FREE hosting that includes 750 GB Disk Space, 15,000 GB monthly Bandwidth, a free domain name and more.||Display Blog Posts on any Page (with navigation)By default, your latest WordPress posts are displayed on the home page, with older posts available via post navigation on /page/2/, /page/3/, and so on. In this DigWP post, we'll explain how to display your blog posts on any static page using a custom WP_Query loop that works beautifully with [...]||Best of DigWP.comChris and I launched DigWP.com back in 2009, and since that time have posted many WordPress tips, tricks, and techniques (well over 300 posts!). So as 2013 fast approaches, it's a great time to look back at the best of DigWP for each year, 2009 through 2012 — 4 years [...]||Plugins & Tools for WordPress DevelopersI recently spent some time updating my growing collection of WordPress plugins, and during the process discovered some great resources for my WP "developer toolbox." These are some super-useful plugins and tools for debugging, logging data, working with translation files, analyzing performance, and making otherwise difficult tasks efficient and manageable. [...]||Elegant Themes Giveaway!To celebrate the season, Elegant Themes is giving away three free memberships to their entire theme library — an impressive collection of 78 awesome WordPress themes yours for free!||v3.4 Printed Books Now Available!Printed books in the house! The new version-3.4 printed books are now available and better than ever, updated for WordPress 3.4 with new content, refreshed graphics, and new features galore. Each book is printed in full-color, with new extra-thick covers and slick spiral binding for laying it flat while reading. [...]||Adoption Program for Abandoned PluginsOne of the the most convenient things about WordPress is the abundant 21,834+ free plugins available in the WordPress plugin repository, but how many times do you run into the scary warning at the top of the page, "This plugin hasn't been updated in over 2 years. It may no [...]||Customizing WordPress FeedsWordPress feeds enable your visitors to subscribe to your content for use in their favorite feed-reader. For example, subscribing to the main-posts feed and/or the comments feed is a great way for your readers to stay current with all the latest news and content from your website. With WordPress, you [...]||DigWP Version 3.4 UpdateDigging Into WordPress version 3.4 is here! The DigWP v3.4 update covers WordPress 3.4 (Green), with new and revised content throughout the book. This is the book's 10th Edition, making version 3.4 more fluid, focused and current than ever. It's also a free update to everyone who owns either print [...]||All-AJAX Theme UpdateJust a heads up! Chris' awesome All AJAX theme is now updated to version 2.0, featuring a whole slew of great improvements, tweaks, and bug fixes..||Notification List for New BooksJust a quick note: we're currently updating the book to version 3.4, and will be ordering a fresh batch of printed books soon. In the meantime, we're setting up a notification list for people who want to know when the new books are back in stock.||How to Setup Secure Media UploadsAs discussed, it's important to protect your site by setting proper file permissions on the server. This can be tricky for certain directories such as /uploads/, /upgrade/, and /backups/, which need to be writable by the server in order for things like uploads, upgrades, and backups to work.||Add Shortcut Links to the WordPress ToolbarWordPress makes it easy to add custom stuff to the Toolbar. This is a great way to personalize the look and feel of the WP Admin with custom menus, links, or whatever makes sense. To further streamline workflow, you can create keyboard-shortcuts to open your Toolbar links with a single [...]||Displaying Code Snippets on a WordPress SiteTechnically there is nothing special about displaying code on a WordPress site that is different than showing it on any other site.||5+ Ways to Add Google Analytics to WordPressDelivered on Google's "world-class platform," Google Analytics is a powerful way to monitor your site's statistics. As flexible content-publishing software, WordPress provides a variety of ways to add Google Analytics (GA) to your web pages. These techniques range from including the GA tracking code directly to using plugins that are [...]||Limit WordPress Post Navigation to Same Author and CategoryIn this DigWP post, guest author David Powell explains how to limit WordPress’ default post-navigation to include posts only from the same author and category as the currently viewed post. This method is effective, but involves making modifications to core WordPress files, something you should only do as a last [...]||Complete List of Default WordPress FilesWhen cleaning up hacked sites and testing .htaccess tricks, it's nice to have a list of WordPress directory and file names for checking patterns and finding strings directly via Search/Find. Especially when working remotely, having a complete list of WordPress files available online can help expedite the attack-recovery process.||Poll: www. or no www.?This one's self-explanatory, but a lot has changed so I thought I'd poll one up to see what people think. It seems there are a lot more sites these days without the www. in their canonical URLs, but a lot of big sites continue to include the "www" subdomain (think [...]||Attach Unattached Media FilesAttaching any unattached media files that you may have floating around is a good way to keep things organized and running smooth. Normally, when you're working on a post in the Edit Post screen, you click the Upload/Insert button and use the nifty drag-n-drop media uploader to get 'er done. [...]||Measuring Latency with Apache BenchOne of the important factors in the speed of your site is the distance between your servers and the browser visiting your site. The time it takes the information to travel from the server to the browser is called latency. Latency increases with distance, so no matter how fast your [...]||Don’t fork your theme, flex it with “is_plugin_active” conditionalDonkey work is really the last thing I want to be doing. Piddly tasks that could have been avoided with a little thought and perspective. In this DigWP tutorial, I explain how I worked my way away from becoming a donkey with a dozen child themes to manage and maintain, [...]|