Url

We specialize in WordPress-based Web sites, custom plugins, and business-class hosting. WordPress.com and social media training for individuals and organizations. We design and develop bespoke blogs, plugins, and CMS sites based on WordPress. Listen, design, develop, launch, and celebrate. Providing solutions for SAP, Ask.com, NBC, Boeing. WordPress installation, customization, and training. WordPress theme creation, customization, tutorials, and all-in-one social media consulting for personal...

Listing

Using register_sidebar() to declare new widgetized sidebars for a theme if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' > '< li id 1 s class widget 2 s> ', 'after_widget' > '< li> ', 'before_title' > '< h2 class widgettitle> , 'after_title' > '< h2> ', In this example, which comes from the default WordPress theme (also known as Kubrick), a single sidebar is declared with the register_sidebar() function. You check for the existence of...

Figure

The WordPress Admin interface for installing themes ti UN Ihinn, . Tht Ward* . Biblt Drrr-i - WWrui Once you have installed the theme (and optionally activated it), you can make theme modifications with CSS or adjust the code as needed. Once you activate it, you can customize it further with widgets. With no additional configuration, widgets, or code changes, your site should look similar to Figure 9.4.

Using the Margin Icons

Throughout the book, you will find icons in the margin that address important things you should be aware of. Take note of these icons because they indicate important things that are relevant to the content you are reading. Notes highlight useful information that you should take into consideration. Tips provide additional bits of advice that make particular features quicker or easier to use. Caution warns you of potential problems before you make a mistake. Watch for the Cross-Reference icon to...

Word Press Versioning

There is, of course, the question of versioning for this book. WordPress maintains a (rough) four-month release cycle for major releases. During the development of the next major release, there are typically security fixes that are released in the form of dot releases. During the process of writing, I have been asked about what version of WordPress this book will cover. Fortunately, 90 percent of WordPress stays the same. Part of the guiding principles of WordPress core development is...

Extending Word Press with Plugins

The beauty of WordPress is its extensibility. Some of the WordPress lead developers have said that the most exciting WordPress features are the ones that don't ship with the software. It is possible to make WordPress do just about anything you can think of with plugins. The framework for this extensibility is made up of a very simple hook system. With hooks, plugin developers can change existing content and hypertext markup language (HTML) before it is actually rendered by the browser, or they...

Memcached and the Batcache plugin

Another type of caching that is extremely useful in setups where more than one server is involved is Memcached. Unlike many systems, Memcached doesn't use file or database-style caching. Instead, it uses transient in-memory storage. Though it is entirely possible to use Memcached on a single server, it is most useful when shared among multiple web servers. The Batcache plugin operates similarly to the WP Super Cache plugin but relies on an auto-expiring object cache backend the Memcached...

Web Resource

The Batcache plugin can be downloaded from the WordPress Plugin Directory at http wordpress.org extend plugins batcache . Regardless of how you install the plugin, you will still need to log in to the filesystem via FTP SFTP or over SSH and move the advanced-cache.php file to your wp-content folder. Batcache operates differently that WP Super Cache in that it doesn't cache every load. It only caches anonymous traffic, and only for URLs that have received three or more hits within 2 minutes....

Using Loops Strategically

Throughout this chapter, I've presumed you will use WP_Query to instantiate a custom Loop. This is seen by many to be a best practice because it enables you to operate with more than one Loop. As the cornerstone of WordPress, the Loop is very important and it is common to need to query the posts more than once to achieve different results. Some sites will use featured stories sliders like those seen on popular news sites. Others use layouts that segment the page according to categories and...