Just another Freebytes.eu weblog

Shortcodes in Widgets

I had occasion the other day to run a shortcode inside of a text widget. You know shortcodes… we talk about them all the time. They are keywords in [square brackets] that do something special. Sometimes something really simple like returning a string (so you can have a global location to change that string) or something complicated like call a plugin that does something fancy like build a photo gallery.

But alas…


This ain’t gonna work “out-of-the-box”

After tinkering with some far-too-complicated solutions, someone on Twitter helped me with a deliciously simple solution: Just add this to your functions.php file:

add_filter('widget_text', 'do_shortcode');

This will ensure that the text content of widgets is parsed for shortcodes and those shortcodes are ran. Awesome.

Stephanie Leary wrote a great article on Using Shortcodes Everywhere, which covers this as well as using shortcodes in a bunch of other places: Comments, templates, excerpts, etc.

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: PHP | Tagged: ,

How to Add Your Plugin to the WordPress Plugin Directory

Getting your plugins listed in the official WordPress Plugin Directory is considered a chore by many, but it’s nothing that should stop you from sharing your plugin with the community at large. Up until now, I haven’t really bothered with adding my plugin collection to the Directory, but after Herb Goodman helped to package my recent Block Bad Queries plugin, I figured now was a good time to dig in and learn the ropes. It turns out the process only took about an hour to complete, not including the waiting period for access to the Subversion Repository (which was about 18 hours). Definitely worth the potential exposure provided by having your plugin listed in the official directory.

If you are a seasoned plugin developer, you already know how to hook it up at the WordPress Directory, but for those who don’t, this DiW tutorial will show you everything you need to know.

Why host your plugin at the WP Directory?

Some of the benefits of hosting your plugin at the WordPress Plugin Directory:

  • Track basic statistics regarding how many people are downloading and when
  • Provide a centralized location for users to leave comments and feedback
  • Get your plugin rated against the many other hosted WordPress plugins
  • And of course, give your plugin greater exposure to the WP community

Further, it seems that plugins hosted at the official directory are perceived to be associated with a greater degree of “trustworthiness.” People trust WordPress, and they also trust the various resources (plugins, themes, etc.) made available to them through the wordpress.org website. Basically, if you’re writing plugins for the WordPress community, you should be sharing them with as many people possible. The Plugin Directory does this exceedingly well.

“Worth playing for?” Let’s look at a quick overview before digging into the specifics of getting your plugin added to the Directory..

Overview

To help get a sense of direction before getting started, consider this overview of events:

  • Write and prepare your plugin
  • Prepare the readme.txt file
  • Sign up for access to the Subversion Repository
  • Wait for approval and SVN access information
  • Use Subversion software to upload your plugin files
  • Wait a few minutes for the system to add your plugin to the Plugin Directory

Of course, the big hurdle that many “would-be” contributors have is using the SVN/Subversion system and software. To be honest, this was one of the reasons why I never bothered adding my other plugins, but now that I’ve seen how easy it actually is (once you learn it), I will most likely add my other plugins as well (eventually).

First steps

First, get your plugin and files ready. You don’t need to compress anything with zip or tar because the SVN system will do that automatically for you based on the contents of your plugin. In my case, the plugin was Block Bad Queries, which contains the following two files:

  • block-bad-queries.php
  • readme.txt

The actual plugin file is the “block-bad-queries.php”. The “readme.txt is the only other required file. If you have multiple plugin files, that’s fine too, they will be uploaded and managed together during the subversion process.

For more information on getting things ready, check out Plugin Submission and Promotion at the Codex. A key factor in the process is a well-written readme.txt file, which we’ll look at next..

Pimp your readme.txt file

I think having a well-prepared readme.txt file is one of the things that helped everything go smoothly for my first time out. Your plugin’s readme.txt is used for the content of the various pages in a typical plugin listing:

  • Plugin Name
  • Description
  • Installation
  • Faq
  • Screenshots
  • Other Notes
  • Changelog
  • Stats
  • Admin

That’s basically it. If your readme.txt contains each of these sections, you should be good to go. There are various details required for certain sections, such as the opening “Plugin Name” information, which requires the following specifics (using BBQ as an example):

=== Plugin Name ===

Contributors: Jeff Starr
Plugin Name: Block Bad Queries
Plugin URI: http://perishablepress.com/press/2009/12/22/protect-wordpress-against-malicious-url-requests/
Tags: wp, protect, php, eval, malicious, url
Author URI: http://perishablepress.com/
Author: Perishable Press
Requires at least: 2.3
Tested up to: 2.9
Stable tag: 1.0
Version: 1.0 

I think we’re all familiar with this type of information – something similar is included at the top of virtually every plugin (and theme) in existence. In any case, this is the first part of a proper readme.txt file, as seen in the WordPress/bbPress plugin readme file standard, which also contains details and further information about the various requirements.

So, to put all of this together and create your own readme.txt file, just copy & paste the following template into a blank .txt file and flesh it out with your own details:

=== Plugin Name ===

Contributors:      (plugin contributors)
Plugin Name:       (name of your plugin)
Plugin URI:        (web page for plugin)
Tags:              (tags for the plugin)
Author URI:        (plugin authors site)
Author:            (the plugin's author)
Donate link:       (a link for donating)
Requires at least: (minimum required WP)
Tested up to:      (tested WP up to ver)
Stable tag:        (plugin's stable ver)
Version:           (plugins current ver)

== Description ==

== Installation ==

== Upgrade Notice ==

== Screenshots ==

== Changelog ==

== Frequently Asked Questions ==

== Donations ==

Aside from wanting to put the “Plugin Name” section at the top of the file, these different sections can be rearranged in any order, but they all need to be present in order to adhere to WordPress guidelines and pass the readme validation. For more information on fleshing out each of these different sections, check out the standard readme.txt example. Once you get everything pimped and ready, the readme validator will display the good news:

Your readme.txt rocks. Seriously. Flying colors.

If you don’t see this message, you’ll get a list of things that need fixed in order to pass validation. The validator is a great tool that makes it easy to put together a proper readme.txt file.

A few notes on the readme file

Here are a few notes that I found helpful while creating the readme.txt file:

  • The readme file uses markdown for marking up your info with links, lists and so on.
  • You may use PHP in your readme content (escape with backticks: `<?php ?>`)
  • Use asterisks for *emphasized text*
  • Use double asterisks for **strong text**

As you can see, the readme.txt file is quite flexible, enabling you to customize your plugin’s information as provided in the Plugin Repository.

Prepare the plugin file

After creating and testing your plugin, you need to give it a license. Here is what the WordPress Codex has to say about it:

  • Your plugin must be GPLv2 Compatible.
  • The plugin most not do anything illegal, or be morally offensive.
  • You have to actually use the subversion repository we give you in order for your plugin to show up on this site. The WordPress Plugins Directory is a hosting site, not a listing site.
  • The plugin must not embed external links on the public site (like a “powered by” link) without explicitly asking the user’s permission.
  • If you don’t specify a v2-compatible license, what you check in is explicitly GPLv2.

Once you’ve given your plugin the required license — either explicitly by including the license or implicitly by not including any license — you’re ready to get hosted at the Repository. Take a few deep breaths and clear your mind..

Sign up for access to the Plugin Repository

Now with your plugin files ready to go, visit the Sign-up page, login to your account, and fill out the form with the following information:

  • Plugin Name (required)
  • Plugin Description (required)
  • Plugin URL

After submitting the form, be prepared to wait awhile to be approved access to the subversion repository. For my plugin, it took around 18 hours to receive a response. Just be patient, if everything looks good, someone will approve your request within a reasonably undefined amount of time. Eventually, you should receive an email with all the information you need to access the Subversion Repository. This is where you will upload and store your plugin. The system will use the files and information included in the Subversion Repository to generate the actual web pages that appear in the Plugin Directory with all of the other plugins. It usually takes a few minutes for the system to create your plugin’s entry, so be patient after uploading. Just as a general reference, I think I waited something like five or ten minutes before seeing my plugin listed in the Plugin Browser.

Use Subversion software to upload your plugin files

At this point, you’ve been granted access to the SVN repository and are ready to upload your files and call it done (until the next plugin update). To begin this task, familiarize yourself (if necessary) with the basics of using Subversion with WordPress. There’s a LOT to learn about Subversion, but don’t let that stop you from making quick use of it to get the job done.

What is Subversion?

Basically, Subversion is an open-source piece of software that people use to more easily manage files and directories as they change over time. The key thing about Subversion is that it enables you to restore previous versions of your data and understand how things have changed. This “time-machine” functionality is especially useful for managing things like continually changing source code, and makes managing thousands of plugins much easier.

How do I use Subversion?

To use Subversion, you’ll need some software. Mac people get it pre-installed with Leopard, and Windows peeps can download the binary installer here. Keep in mind that, for either operating system, Subversion is something you run through either Terminal (Mac) or the Command Prompt (Win) as a series of commands. As you can imagine, there are a gazillion commands available, but we’ll only be needing a select few for our purposes here.

Please don’t make me use the command line!

If the thought of using the command line to run software makes your stomach turn, you can use Subversion through a graphical interface such as Versions for Mac, and/or
Tortoise for Windows. I haven’t used either of these apps, but they certainly look more inviting than the command prompt, which is what we’re rolling with for this tutorial.

How does it work?

There are two sets of files we’re working with: local files (on your computer) and remote files (on the server). For each set of files, we want the following directory structure (using my plugin as an example):

root-folder/
	/trunk/
		block-bad-queries.php
		readme.txt
	/branches/
	/tags/

To get started, we’ll place our files into the /trunk/ directory, and then in the future add new versions to either the /branches/ directory (for major updates) or /tags/ directory (for minor updates).

Once uploaded, your files are stored in the central plugin repository on WordPress servers. From the repository, anyone can check out a copy of your file(s), but only you (the plugin author) have the authority to check in new file(s). Using Subversion, any changes made to your local files are mirrored exactly on the server, and eventually reflected in your plugin pages in the WordPress.org plugin directory.

Add your plugin to the Repository

Now that we have our files ready and Terminal (or Command Prompt) open, let’s wrap this up and upload our files to the Plugin Repository. Here’s an overview of what we’re going to do:

  1. Check out the blank repository (i.e., the empty directory structure)
  2. Add your files to the local /trunk/ directory on your computer
  3. Update the repository with copies of your local files

Here’s how to do it with Mac Terminal, and it’s very similar for Windows Command Prompt:

$ mkdir my-local-dir
$ svn co http://svn.wp-plugins.org/your-plugin-name my-local-dir
$ cd my-local-dir/
my-local-dir/$ cp ~/my-plugin.php trunk/my-plugin.php
my-local-dir/$ cp ~/readme.txt trunk/readme.txt
my-local-dir/$ svn add trunk/*
my-local-dir/$ svn ci -m 'add some notes here'

And here are the same commands with comments and returned messages:

# create a local folder for your copy of the repository

$ mkdir my-local-dir

# download the empty directory structure to your new folder

$ svn co http://svn.wp-plugins.org/your-plugin-name my-local-dir
> A	my-local-dir/trunk
> A	my-local-dir/branches
> A	my-local-dir/tags
> Checked out revision 11325.

# copy your plugin files to the local trunk directory

$ cd my-local-dir/
my-local-dir/$ cp ~/my-plugin.php trunk/my-plugin.php
my-local-dir/$ cp ~/readme.txt trunk/readme.txt

# register the new files with Subversion

my-local-dir/$ svn add trunk/*
> A	trunk/my-plugin.php
> A	trunk/readme.txt

# update the Repository with the new files

my-local-dir/$ svn ci -m 'add some notes here'
> Adding	trunk/my-plugin.php
> Adding	trunk/readme.txt
> Transmitting file data ..
> Committed revision 11326.

# All done!

That may look like a mouthful, but it’s actually only about seven commands, even fewer if you manually create the directory structure and add the local files yourself. You should also keep the following notes in mind if you are new to the whole “command line” thing:

  • Any line prefixed with a pound sign # is a comment and should not be used as a command.
  • Lines beginning with a ”>” character indicate a response from the software and should not be used as a command.
  • All of the specific file and directory names need to be changed to match your own.
  • The “-m 'add some notes here'” in the last command is used to add notes for the event — they may be anything you wish (or none at all).
  • At the last step, you may be prompted for your username and password, which should be the same as used when logged into the WordPress.org site.

After running those commands, your plugin will be in the Repository and ready for the system to automatically create your actual plugin pages as they will appear in the Plugin Directory. This usually takes some time, so grab a drink and kick back for around five to ten minutes. Eventually, you will see your plugin appear on the Newest Plugins page, and then also at its dedicated page, which will be something like this:

http://wordpress.org/extend/plugins/your-new-plugin/

Once you get this far, you’re golden. There are many other cool things you can do with Subversion to manage and update your plugin. To get started with updating and tagging, check out the How to Use Subversion in the Plugin Directory. And for even more information on the entire process of adding your plugins, check out the Plugin Developer FAQ.

Final thoughts..

Overall, getting my first plugin hosted at the WordPress Plugin Directory was a great learning experience that will make it easy to add other plugins in the future. Hopefully the fruits of my labor will help you when adding your own plugins to the Directory. As always, feel free to chime in with suggestions, questions and concerns about any of the techniques described here. It would be great to hear more about using Subversion (tips, tricks, etc.).

Also, if you are interested, you can see the result of all this work by checking out the Block Bad Queries (BBQ) Plugin at the Plugin Directory. There’s still a few details that need to be added/tweaked, but it’s great just having it in there.

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | 7 comments | Add to
Delicious
Categorized: Plugins | Tagged: ,

PubSubHubbub Now On All WordPress.com sites (+ plugin for self hosted sites)

This is me trying to understand it:

Instead of services that read your feeds (e.g. Google Reader) having to ASK for your feed periodically, now they can instead just wait until YOUR SITE notifies THEM. Basically a “push” service.

It seems to me this is half the equation. The other half is building services that accept these push notifications. I’m not sure who is already doing that, but I wouldn’t be surprised if Google is on it, since it seems like a more efficient way of doing things on both sides (less server resources on both sides).

Two concerns I can think of:

  1. Is this just as reliable as the “old” way? People not getting feed updates because of a hiccup in the chain sucks for everyone.
  2. This makes “accidentally” hitting that publish button potentially even more embarrassing than it already can be. Like when you accidentally publish a post instead of a page.

Also check the overview slideshow here.

Direct Link to ArticlePermalink on DiW

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Links | Tagged:

Add Link to Favorites Dropdown

This is basically a smarter way to handle the situation I just posted about. Using a function to manipulate the favorites dropdown instead of a core hack.

Direct Link to ArticlePermalink on DiW

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Links | Tagged:

Change Quick Action Button in Admin

You know the “quick action” button in the WordPress admin? It’s a darn useful little UI touch. At the Dashboard, the default is “New Post”. But depending on where you are in the Admin, the default of it changes. In general it’s really helpful. For example when you are in the Plugins area, the default is Install Plugins:


Default action being smart

A while ago I was moaning about one particular area where I didn’t find the default being so smart. When you publish a new Post, the default goes to New Post. To me it would make sense when you publish a new Page to have that button be New Page. If you have a WordPress site where you publish a lot of pages, you can feel me.

Reader Otto let me know there is a way you can change this. Here is Otto:

Adding the New Page as default there is actually rather simple.

Look in wp-admin/includes/template.php. Down towards the bottom of the file, you’ll find the function favorite_actions().

In that function, it reads the wp-admin page name and sets a $default_action based on that. For example, when you’re looking at the edit-pages.php screen, the default action becomes “New Page”.

The Page editor screen is page.php. Note that it has no default action. To give it one, simply add a case ‘page.php’: in the correct place. You can add it directly before that case ‘edit-pages.php’ if you want the default action to be the same New Page link.

If you want this change made to core, then I suggest making an Enhancement ticket to that effect on the WordPress trac. As always search first, somebody else might have already made that ticket request.

So to fix my particular gripe, I just opened the file at the path mentioned above and found the favorite_actions function. It’s a pretty readable function, and adding a new bit to change the behavior is pretty easy. I just added this right above the one for edit-pages.php

case 'page.php':
   $default_action = array('page-new.php' => array(__('New Page'), 'edit_pages'));
   break;

Fixed!

Important notes

This is what you would call a “core hack”. Meaning that next time you upgrade WordPress, this code will be gone. It doesn’t mean “don’t do it” and it especially doesn’t mean “do it and don’t upgrade”. It means that you should make a note somewhere handy to yourself that when you do upgrade, you can see if it’s fixed and if it’s not, make the same alteration again.

Also as Otto suggested, there is an official channel for getting stuff done like this, the WordPress trac. I’ve never submitted anything there before, but to put my money where my mouth is I opened a ticket.

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | 6 comments | Add to
Delicious
Categorized: Admin | Tagged: , ,

Digging into WordPress Version 2: New Chapters, Free Themes, and Site Redesign

[ Digging into WordPress v2 ] The updated book is looking better than ever! A little over 3.5 months after Digging into WordPress v1, Chris and I have updated the book, the site, and everything else for DiW Version 2. Both PDF and printed-version of the book now include two new chapters and two free themes. We have a new “Bonus Tricks” chapter with some awesome theme techniques, and another chapter on “WordPress Updates” that explains how to use all the latest WordPress features. Along the way, we also discuss the two free themes that are bundled exclusively with DiW Version 2. We even updated the printed version of the book, which is now available.

Free Lifetime Updates: If you have already bought the book, you should already have gotten an email with a download link for the new version, which also contains the new bundled themes.

Fresh Content

In addition to improvements and enhancements to existing content, DiW v2 features two new chapters, “Bonus Tricks” and “WordPress Updates.” Here are some sample sections from each of these new chapters:

  • Add Author Bios to single posts
  • Integrating a Theme Options Panel
  • About the new Child Themes
  • Ajaxing a theme
  • Embedding videos with oEmbed
  • How to use the new Image Editor
  • Canonical Meta tags
  • How to use Post Thumbnails

[ Digging into WordPress ]

Plus tons more! The new chapters flow along perfectly with the presentation and style of the book, and include helpful “popouts” and other tangential tips and tricks. Future updates will see more content added to each of these chapters to keep the book organized and as easy to use as possible. And of course don’t forget about the free lifetime updates!

Bundled Themes

Two new themes now exclusively bundled with Version 2: Plastique and Lines & Boxes. These dynamic, fully functional themes are designed to integrate all of WordPress’ best features, including:

  • Child Themes – each theme includes a custom child theme to show you how easy they are to create — we inverted Lines & Boxes and made a black-&-white version of Plastique.
  • Theme Options Panel – each theme includes tons of options and settings that are available in the WP Admin — just log in and customize everything exactly how you want it.
  • Widgetized Areas – not just for sidebars anymore, we’ve widgetized just about everything imaginable — headers, footers, before/after posts — you name it.
  • Custom Functions – we enhance the functionality of the themes with some choice functions, including special filters, script inclusion, and even some custom widgets.

[ DiW: Bundled Themes ]

These themes are well-designed, clean, and flexible, providing you with actual examples of how the code in the book can be used to create beautiful, powerful themes exactly how you want them. Check out the Theme Clubhouse to check out live demos of these themes (and more).

Plastique

Plastique is an extremely flexible, fully widgetized, multiple-layout theme with many custom options and a solid, streamlined design. Choose from single-column, three-column, or left/right sidebar layouts. Throughout the design, custom content panels make it easy to add any type of content imaginable. Widgetized sidebars, headers, footers, and everything else make it even easier to customize everything exactly how you want it. Preview live demo of Plastique.

Lines and Boxes

Based on the look of a wireframe, Lines & Boxes is a stylish minimalist theme that could be used as-is or as a starting point for a more elaborate design. Features include plenty of custom options for customizing the theme’s header, as well as options for creating the main navigational menu via category list or page list. Lines & Boxes is a clean, sharp design that makes your content look incredible. Preview live demo of Lines and Boxes.

All Ajax

Based off Lines & Boxes, the All Ajax theme is a fully functional theme (i.e., not just a child theme) that uses the power of Ajax to load all internal links without refreshing the page. This functionality makes for an exceptionally smooth experience for your visitors as they navigate around the different parts of your site. Preview live demo of All Ajax.

New Site Design

As if all that weren’t news enough, Chris and I also managed to roll out a redesign of the Digging into WordPress site. It’s a step in a new direction for the site, which now matches the blue-&-white color scheme of the book. We’re still in there tweaking a few minor things, but overall I think the design is cleaner and better focused on the content. Drop by and let us know what you think!

[ DigWP.com Site Redesign ]

Get the Book!

Even with all the new content and free themes, we’re keeping the book priced at $27 for the PDF and $67 + S&H for the printed book/PDF combo. Both versions of the book include the free themes bundled with the PDF, so either way you’re getting the most for your money. Did we mention the free lifetime updates? ;)

Note for people who purchased the PDF while the printed version was unavailable

If you purchased the PDF between January 18th and February 28th and would like to purchase a printed copy of the book, just forward a copy of your receipt to sales@digwp.com and ask for the discount code. We’ll send you a discount code for the entire PDF purchase amount.

Get DiW Version 2!

Source: Perishable Press

Take your WordPress skills to the next level with Digging into WordPress!

Related articles

Digging Into WordPress v2.0 + Print is Back! (Oh, and a fresh new design!)

Version 2.0 is here! If you have already purchased the book, you have already gotten an email with a link to download the 2.0 version of the book. If you have been waiting for the print version to come back in stock, the time is now!

We sold out of the print version the first round in a matter of weeks. Right about that time, WordPress 2.9 was coming out, so instead of just reprinting more we decided to update the book and print new copies with that fresh information. That is exactly what we have done. The all-new Chapter 11 of the book deals with new stuff in WordPress 2.9 (and how to use the new features). That chapter will also be the home for future version-specific updates to WordPress.

Read on to find out more about the book. Oh and by the way, we’re sporting a fresh new design here on the site. What do you think?

There is also brand-new Chapter 10 called “Bonus Tricks!” which deals with some cool new tricks for your themes. This chapter is also where we introduce the new themes that now come bundled with the book. That’s right folks, the book now comes bundled with two major new themes, as well as some child themes for those, and a couple of other bonus themes. These themes are book-only, meaning that the only way to get them is through the book bundle, which comes with either book buying option.

The book is some 30+ pages longer, sporting a shinier tougher cover, thicker binding coil, and updated and improved content throughout, the price point is going to remain the same for both the PDF and Print bundle. It’s costing us a good bit more to produce, but we upped the quantity we ordered a bit to cover some of that. Still got the family working hard!

Bundled Themes

The best way to illustrate and explain something is often just to give someone the finished product and let them explore it. There is lots of code in the book, but it’s all removed from the context of a real design. Now you’ll get some real themes along with the book so you can see how that code is used in an actual theme. The themes do a particularly good job illustrating two big topics:

  • Theme Options Panel – Both themes have options panels for setting various theme-specific options. They are built in a “framework” style, so that adding your own or adjusting what options are there is pretty easy.
  • Child Themes – Both themes come with a child theme which restyles the theme without affecting any of how it works. If you’ve always wondered how that works, you can see it with these themes.

Plastique

See theme options shine here as there is a ton of options to control your theme. Everything from how it is laid out (columns, positions) to what types of things you wish to include, to adding in markup into individual sections. Preview Theme

Lines & Boxes

Based on the look of a wireframe, Lines & Boxes could be used as-is for a minimalist look, or used as a starting point for a more fleshed out graphical theme. Some theme options including overriding the header of the site, and options on if you want the main navigation to be a category list or a page list. Preview Theme

All AJAX

“All Ajax”, also a bundled theme, is based off Lines & Boxes but is not technically a child theme. The idea is that every internal link on the site loads without page refresh. Preview Theme

Get it

Even with all the new themes and 30+ new pages, the price point for the book and PDF stay the same. $27 for the PDF and $67 + S&H for the Book/PDF Combo. If you buy the print book, remember that automatically comes with the PDF which now comes as a bundle with the themes, so you don’t miss out on that action.

What happens if you bought the PDF while the book was sold out and now want the print copy? That would be anytime between January 18th and February 28th. If that describes your situation, just forward a copy of your receipt to sales@digwp.com and ask us for a discount code. We’ll send you one you can use on the print copy good for the value of what you paid for the PDF.

Go get it!

Regarding Shipping

Books are basically being assembled at the time of this writing. It is likely that they’ll be boxed and labeled to ship to you folks a week from today. So if you order today, just note that you’ll probably get them in about 10-12 days. Later orders will arrive in typically more like 4-5 days. International orders take more time.

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | 25 comments | Add to
Delicious
Categorized: Upgrade | Tagged: ,

WordPress Defender: 30 Ways to Secure Your Website

Looking for a good book on WordPress security? If so, we’ve got great news! John Hoff’s new security e-book WordPress Defender provides 30 practical ways to secure your website from the evil forces of spam, bad bots, and malicious hackers. The book is packed with practical, common-sense security techniques that virtually any WordPress user can use to protect their site from malicious threats.

The book begins with some general information and then immediately gets into explaining everything you need to know. Throughout the book, John covers everything from backing up and upgrading to blocking bad queries and hiding sensitive information. Along the way, you will learn many tricks and techniques for securing your WordPress-powered site, including htaccess code, WordPress plugins, and much more.

Here are some of the highlights of WordPress Defender:

  • Essential best practices
  • Kick-ass security plugins
  • Creating tripwires with htaccess
  • How to hide sensitive information
  • How to setup and connect with SSL

..and of course much more. WordPress Defender is WordPress security for the masses. Seriously, I think that just about everyone using WordPress will benefit from this book. Plus, John’s easy-going, laid-back writing style makes you feel right at home as he walks you through the many different ways of protecting your site. If you use WordPress and need to know more about how to protect your site against villains, you need to get WordPress Defender.

Special 50% discount on the e-book today through March 3rd!

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Security | Tagged: ,

Use BuddyPress, Keep your Theme

If you want to use BuddyPress (a massive plugin that basically adds a social networking layer to WordPress sites, think, forums, profiles, user blogs, etc) but you’ve been hesitant to try it, now is a better time than ever.

BuddyPress 1.2 now works with stand-alone WordPress installs (before you had to use MU) and you can even keep your existing theme.

Direct Link to ArticlePermalink on DiW

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Links | Tagged:

Rockin’ out WordPress custom loops

kristarella has a nice article on writing your own custom loops.

Direct Link to ArticlePermalink on DiW

Like the article? Get the book!


© 2010 Digging into WordPress | Permalink | Comments | Add to
Delicious
Categorized: Links | Tagged: