Uncached Functions

WordPress core has a number of functions that, for various reasons, are uncached, which means that calling them will always result in an SQL query. Below, we outline some of these functions. We have a helper file with cached versions of some of the functions, which is automatically available to you. get_posts() Unlike WP_Query, the results […]

home_url() vs site_url()

When working with domain-mapped sites on WordPress.com, home_url() and site_url() will return different values. home_url() returns the primary mapped domain (e.g. vippuppies.com) site_url() returns the *.wordpress.com URL (e.g. vippuppies.wordpress.com) A few notes: home_url() will only return the mapped domain on or after the init has fired. Calling it before then will return the .wordpress.com domain. If you […]

Key Differences Between Validation and Sanitization

VIP Services developer Daniel Bachhuber shares some tips on writing better code for your WordPress site: Your code works, but is it safe? When writing code for a high-profile environment, you’ll need to be extra cautious of how you handle data coming into WordPress and how it’s presented to the end user. This commonly comes […]

Validating, Sanitizing, and Escaping

Your code works, but is it safe? When writing your theme and plugin code, you’ll need to be extra cautious of how you handle data coming into WordPress and how it’s presented to the end user. This commonly comes up when building a settings page for your theme, creating and manipulating shortcodes, or saving and […]

Adding Open Graph Tags

Open Graph Tags are automatically enabled for all public, non-VIP blogs on WordPress.com. Open Graph tags make it easier for you to control what information Facebook, Google+, and other services display when users share posts from your site. VIP sites are excluded as many existing themes already have custom code that handles these tags. This […]

Case Study: IGN doubles community with flexible CMS WordPress

Summary When IGN outgrew its homegrown content management system, they needed a CMS that would support the entire scope of the site and all its content. More importantly the CMS had to make it easy for their users to contribute content and for their editors to publish it. They found that solution in WordPress, and […]

FCC contributes back to open source

Earlier this month, the FCC explained why they use and contribute back to open source software: Here at the FCC, we’re always excited when we can contribute to open source software. Open source software is just like any other software, except the creator publishes the underlying source code that powers the application, allowing others to […]

Changing Core WordPress Strings

One of the lesser used filters in WordPress is ‘gettext.’ All strings that use the WordPress translation functions are run through this filter after the translation occurs, enabling developers to manipulate any string in WordPress. VIP’s use this most commonly in the admin area. Here’s some sample code to filter a few WordPress core strings: Note […]

Bangor Daily News: A complete publishing system on WordPress

Check out the inspiring and detailed story about Bangor Daily News switching to a publishing system powered by WordPress and Google Docs, on Media Bistro. There’s also a screencast which outlines their new editorial workflow and a list of all the plugins you can install to run your own news site with WordPress (emphasis ours): […]

Ready to get started?

Tell us about your needs

Let us lead the way. We’ll help you select a top tier development partner. We’ll train your developers, operations, infrastructure, and editorial teams. We’ll coarchitect your deployment processes. We will provide live support for peak events. We’ll help your people avoid dark alleys and blind corners, and reduce wasted cycles.