Implementing a Twitterstyle Blog

WordPress can also be used as a microblogging platform. Microblogging is a loose term describing the posting content to the Web in tiny bite-sized pieces, generally in 140 characters or less (although there is no strict rule on this). Twitter made microblogging popular and a number of other similar platforms, such as Identi.ca (http identi.ca) and Yammer (http yammer.com), have emerged as alternatives. But what if you like WordPress so much that you'd rather implement a WordPress blog that...

Understanding Word Press Hooks

The bulk of the WordPress plugin application programming interface (API) is made up of two core elements, or hooks actions and filters. They are conceptually different, but very similar in practice. Actions are event-driven. When specific events occur in WordPress, such as saving a post, loading an admin page, or sending HTML to a browser, plugins have the capability to hook into these events and create their own events. As an example, a plugin might ping a server when a post is saved. Or it...

Using Word Press as a Content Management System

WordPress does a great job of providing the basics of a CMS out of the box. It is entirely possible to run a corporate, church, school, or any other kind of Web site using WordPress pages alone. Whether you include a blog (posts) as well is completely optional. The core of WordPress is the page system. Pages in WordPress behave similarly to posts, except pages do not have a category hierarchy. Further, unlike posts, pages offer a parent-child hierarchy, so it is possible to have pages...

Finding and Implementing Free Themes

WordPress themes are the other side of WordPress extensibility. In Part II of this book, I took a long, hard look at plugins, hooks, widgets, and other aspects of extending WordPress with plugins. The other side of that equation is themes. As with plugins, WordPress has an entire theme infrastructure available for theme developers to use. The theme application programming interface (API) is comprised of an abundance of template tags and, as with plugins, themes can be installed with one click...

Figure 211

The authentication process using the Simple LDAP Login plugin Of course, the authentication functions in WordPress are all pluggable that is, they exist in the wp-includes pluggable.php file. Every function in this file is only declared if it is not declared elsewhere via a plugin. Therefore, if you need to build authentication against some other system, including homegrown, single sign-on solutions, you can write your own functions to do so. The key functions to think about and replicate in...

Search Engine Optimization

Search engine optimization (SEO) is the process of trying to get Web pages to rank higher in search engines. For example, when someone does a search on Google, she wants her Web page to be ranked higher than the competition. The holy grail of SEO is to get placement on the front page of a set of search results, preferably positioned as the first result. These results are known as Search Engine Results Page, or SERPs. With massive firms working for clients and advertisers to improve their SERPs,...

Summary

The Codex is the official online documentation for WordPress. The Codex is also available in multiple languages as part of internationalization (i18n) and localization efforts. There are a number of WordPress mailing lists that community members can, and in some cases should, subscribe to. These mailing lists are for coders, testers, professional services consultants, and more. The support forums provide a rich depth of searchable content and archived assistance between users. Being...

Word Press support

In any business, the goal is to make money. In an enterprise corporation, it's often better to have a Web site supplement efforts to make money than be a primary source because this can be an employee time-drain. In these cases, enterprises want to know that they can get support for their product in a hurry. While Automattic guides WordPress development and innovation, it only offers professional services for WordPress.com VIP customers. Fortunately, there is a rich ecosystem of professionals...

Lead generation and CRM integration

Many enterprise companies, particularly sales organizations, want their Web sites to be lead generators. In other words, any time a prospective customer (lead) contacts the company, they want that customer lead inserted into their Customer Relationship Management (CRM) software. The largest and most popular CRM software is Salesforce (www.salesforce.com). Fortunately, Salesforce offers a RESTful (Representational State Transfer) API for lead generation. RESTful APIs allow data to be transferred...

Figure 151

Technically, WordPress determines if there is an upgrade by comparing the available version at WordPress.org to the version installed. This is done through a request (hypertext transfer protocol, or HTTP) to WordPress.org and comparing version information in the database. Similarly, plugins have a nag that comes in the form of a small red bubble that is superimposed on the Plugins navigation item (see Figure 15.2). The number in this bubble represents the number of plugins that are installed...

The All in One SEO plugin

If you're serious about your SEO (and you should be), there is a single plugin that is virtually a requirement for any blog. The All in One SEO plugin automatically takes care of much of what I have already talked about in this chapter. When you install and activate the plugin, from within WordPress or by downloading and installing it from the WordPress plugin repository at http wordpress.org extend plugins all-in-one-seo-pack , you will find a new top-level navigation item, titled All in One...

Harnessing the Cloud

Media storage is the final area where you can make performance enhancements. As you dive into file types, you'll discover that PHP files are different than HTML files, which are different than binary files, such as images. Each binary file can be compressed or decompressed, but each one has its own overhead. In addition, images that are compressed gain far less boost than text files like HTML. Therefore, it makes sense that certain types of files can be optimized certain ways. Or rather,...

Crowdsourcing with Poll Daddy

PollDaddy, one of the newest acquisitions of Automattic, is a hosted poll service that enables bloggers on any blog platform, not just WordPress, to create online surveys and polls and to crowdsource (a word describing the solicitation of community input around an idea or topic). Like IntenseDebate, it is a JavaScript-based widget (not in the sense of sidebar widgets that are built into WordPress, but as a separate module that can be used on a Web page). PollDaddy is a freemium service. There...

Table 142

MetaWeblog API XML-RPC Methods Supported by WordPress Creates a new post or page with the following allowed data publish status, slug, post password, page parent id, page order, author id, excerpt, tags, allow comments, allow pings, date, categories, and URLs to ping on publish. It can also make a post Sticky. Modifies a given post using the same fields supported by metaWeblog. newPost. It can also make a post Sticky. Retrieves all MetaWeblog-supported data given a specific post ID. Retrieves a...

Wptesters

The wp-testers mailing list is also a high-volume mailing list that increases in volume, on average, about a month before a major release. This is synchronous with the amount of testing and bug reporting that goes into a new release as it is prepped for shipping. This mailing list is designed to cater to a portion of the community who love to see WordPress perfected before it's released. The members are people who take a lot of time going through the software to find the security problems,...

Using variables to alter the query

WordPress enables you to pass many query string variables to adjust the data request of the query. The variables can be in an array or in a query string, which is a set of key value pairs separated by ampersands (& ). You can pass in as many or as few of these as you wish. The query string variables available include the following order. This can be either ASC for ascending or DESC for descending. By default, the query will retrieve data in descending order (equivalent to reverse...

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...

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...

Optimizing PHP with Opcode Caching

Beyond the caching mechanisms that you can implement from the WordPress side, you also have a couple options for optimizing and caching PHP. Opcode caches reduces the PHP overhead that is required to run PHP scripts. Sometimes PHP opcode caches are referred to as PHP accelerators. PHP is different than other languages like C or Java because it is a scripting language and is not precompiled. The system requires compiled code otherwise known as opcode to execute, and while other languages are...

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...

Apc336

Caching MySQL with HyperDB and the Query MySQL query Harnessing the Chapter 19 Understanding WordPress Roles and Capabilities 343 Looking at WordPress Roles and User Adding and removing custom Checking capabilities in Using the Role Manager Part VI Alternate Uses for WordPress 353 Chapter 20 Using WordPress for Alternative Blogging 355 Photoblogging with What is a Examples of notable The Fine Arts Lens Great WordPress photoblog Monotone StudioPress Black Using EXIF data in a Implementing a...