FooPlugins Blog

Gems of Docs: Custom Captions in FooBox

Today I’m starting a new series called “Gems of Docs”. I want to use this to highlight some features of our plugins that we’ve documented, but that seem overlooked. I also want to highlight great use-cases for how you can implement them on your site to excellent effect. Custom Captions in FooBox To kick off this series, I wanted to highlight my latest favorite tool in FooBox: Custom Captions. First, head over and read the docs article about it: Custom Captions. OK, so from that docs page you can see that you can do two cool things with Custom Captions … Read more…

How to Enlarge Thumbnails in the Media Library

Media Thumbnail Enlarger Before and After

Our friend Nick Ciske has recently released the Media Thumbnail Enlarger plugin for free on the WordPress repository. What This Plugin Does This plugin increases the size of the media library thumbnails seen when viewing your WordPress Media Library page. By default, it uses the thumbnail size as determined in your WordPress Media Settings. This is typically 150×150. You can also set a custom Media Library Thumbnail size by using a simple image size code snippet in your theme’s functions.php file, which is probably where this plugin will be most useful. add_image_size( ‘mte_thumbnail’, 300, 300, true ); …or whatever size … Read more…

Beware : Your Site Is Part of a WordPress Pingback DDoS Botnet

WordPress Pinback DDoS Prevention Plugin

18 Mar 2014 Update : the plugin has been accepted and is now available on the WordPress.org plugin repo! Recently, Sucuri posted about 160,000 WordPress sites being used in a DDoS attack. This got me worried about my personal blog, as someone had emailed me last year, claiming that my blog was being used in a DDoS attack. I immediately figured the email was spam and thought “There is no way my site can be so badly compromised!” and I deleted the mail. The truth was, my personal blog was used in a WordPress Pingback DDoS attack against some poor … Read more…

Make A WordPress Plugin – Translations

FooCamp - How to Make a WordPress Plugin

Make Your Plugin Translation Ready WordPress provides us with all the tools (and functions) we need to make our plugins translatable or localizable. Why make your plugin translatable, you might ask? Well, to increase your plugin’s target audience by allowing any person, who speaks any language, the ability to understand and use it. But making your plugin ready for translation doesn’t mean you need to do the translations yourself. But it does provide a really easy way for your plugin users to provide their own translation files. This is what you need to do in order to make your plugin translation … Read more…

Make A WordPress Plugin – Readme.txt and Refactoring

FooCamp - How to Make a WordPress Plugin

In the previous post, we created our first plugin and also create a GitHub repo for it. So far so good, but now we need to take it a step further. In this lesson we will cover the following topics: Create a readme.txt file. Create a readme.md for GitHub. Refactor code into different files. Readme.txt Why even bother creating this file? Very simply : the WordPress.org plugin repository uses it to generate your plugin’s landing page. And this page can make all the difference when people are deciding if they want to download your plugin or not. I seldom download … Read more…

Make A WordPress Plugin – Your First Plugin

Now that you have your environment setup correctly, let’s start coding and make a WordPress plugin, your first! I think it will be easier to follow by example, so we will be creating the first version of our FooDocs documentation plugin in this post. These are the steps we will follow: Create a new git repository. Clone the repository to our local WordPress’ plugin folder. Create a plugin file. Define our plugin class. Hook up some actions. Register a custom post type. Active and test the plugin. Commit our changes. Create Git Repository I am going to be using GitHub … Read more…

Make A WordPress Plugin – Your Environment

As mentioned in the introduction post, before you write a single line of code to make a WordPress plugin, you need to prepare both your environment and yourself, to start writing code. A lot of tutorials just jump in and miss the fundamentals. I believe that without the fundamentals, you might as well not even start. Think of this post as an upfront investment – a down payment if you will. Getting my development environment setup correctly from the start has literally saved me weeks worth of time over the last couple of years. Here is the list of what we will be … Read more…

FooCamp – How to Make a WordPress Plugin Series

FooCamp - How to Make a WordPress Plugin

FooCamp – An Introduction Is this just another WordPress plugin tutorial? No way. There are plenty tutorials and blog series out there, but this will be different. A few days ago, I was wanting to teach our support guru Matt Cromwell how to write his own WordPress plugin. So instead of just sending him a list of things to do and read, I thought it would be a really cool idea to blog about it. In that way, everyone can learn along the way (including me). And so FooCamp Plugin School was born! Who knows, maybe when we are done, … Read more…

Plugin Troubleshooting 101

How to Troubleshoot a Plugin Conflict

We’ve all been there: You’re excited about a new plugin, you download it, install it, and then BOOOM! You’re site is a blank white page. Maybe you got the courtesy of an error message. Bottom line: A plugin broke your website and now it’s time to start troubelshooting. Or Did It? WordPress is an amazing platform to build websites with specifically because it is Open Source. What that means though as well is that young developers and designers get to experiment with an amazing code base — which is great, but it can sometimes wreck havoc on your site even … Read more…