WordPress Archives

  1. WordPress Post Format Fallbacks

    Post Format Fallbacks

    While our post formats admin UI is getting a nice warm reception (100+ tweets, pings and comments, wow!), there is a concern that has popped up a few times – one that I included a nod towards in my original post. What happens when publishers put important data in the post format custom fields, then…

  2. WordPress Post Formats Admin UI

    format-standard

    The Post Formats feature that landed in WordPress 3.1 is a great framework feature. I’m leveraging it extensively on this site to drive my link, status, photo and gallery posts. While it is a great framework feature, it only really exists as something developers leverage to extend WordPress. There is no UI that ships with…

  3. Anonomize Non-Public WordPress User Data

    If you need to remove non-public user data from a WordPress database, these SQL queries should do the trick for you: View the code on Gist. Note that if you have plugins, etc. that store additional user data in user meta you might need to clear those out as well.

  4. Crowd Favorite is Hiring: Technical Designer

    Crowd Favorite is hiring! We’re looking to add a designer with good HTML and CSS chops to join our front-end team in our Denver, CO office. I’m certainly biased, but I think this is a pretty great position. You will get to: work with latest web standards work on high-profile websites conceptualize and create new…

  5. wp_publish_post() Does Not Set post_*

    The inline documentation for wp_publish_post() says that it will: Publish a post by transitioning the post status. and that’s exactly what it does. Moreover, that’s all it does. If you are creating a draft post via wp_insert_post() (or wp_update_post(), which calls wp_insert_post()), certain defaults will be set for you when the post status is set…

  6. Custom Fields vs. Taxonomies

    For years I’ve used custom fields (post meta) in WordPress as a primary storage area for misc. data about specific posts (including pages, custom post types, etc.). Recently, I’ve realized that I should be using custom taxonomies instead of custom fields in a variety of situations. Custom fields are still the right choice for misc.…

  7. Drafts Dropdown 2.0

    drafts-dropdown-2

    I’ve released an updated version of Drafts Dropdown. This is a WordPress plugin that gives you easy access to your draft posts. A “Drafts” link is added to the admin bar. Clicking this drops down a drawer with your drafts. The new version also updates the styling, improves performance, and will make you younger, fitter…

  8. Where to Host WordPress Code?

    I talked to a number of developers about at this year’s WordCamp SF about where best to publish WordPress code as a developer. We definitely want to use the SVN repositories on WordPress.org so that released plugins can be easily available to the community, but there is very little developer community there. We’ve also used…

  9. WordPress Filter for Pingbacks

    My team and I have been working on a plugin to enable a better UI for post formats in the WordPress admin (more on this later, but feel free to grab the code and play with it). One of the things we’ve done is standardize on some custom field names for various bits of data…

  10. WordPress GUIDs Must Be URLs

    If you are customizing the GUID value of a post in WordPress, make sure you maintain the format of the GUID as a valid URL format. There are security checks on the value that enforce the URL format. If you pass in a UUID as the GUID value when creating a post, your value will…

  11. WordCamp SF

    Devin and I are in San Francisco for WordCamp this weekend. I’m looking forward to catching up with some old friends and meeting some new folks in the WordPress community. I’ve also got a couple of core tickets to lobby on – look out Nacin! I’m always happy to talk about the technical details of…

  12. WordPress + Twitter + Facebook = Social

    Social Comments

    Social is a new WordPress plugin that makes it easier for you to connect your WordPress site to other social web networks. Download This thing is really cool, for a number of reasons. I’ll dive into those in a bit, but first head on over to the MailChimp blog to see the official release announcement.…

  13. GUID Fix Plugin (Important for RAMP Customers)

    Yesterday we released CF GUID-Fix, a plugin to address an issue that could cause problems for folks using our RAMP content-deployment product for WordPress (my previous post about RAMP).1 There were versions of WordPress prior to 3.1 that had a bug that caused pages and some custom post types to have non-unique GUID values. This…

  14. RAMP: Easy Content Deployment for WordPress

    I’m very excited to introduce RAMP to the WordPress community. RAMP is a new commercial product for WordPress that makes it easy to set up your content in your staging environment, then push those changes to your live site. At Crowd Favorite we are fortunate to have some really great clients. These clients are running…

  15. Reminder: Post Formats are a Taxonomy

    If you hook in to get_the_terms and try to make a get_post_format() call within your callback without first removing your filter, you’re going to get an infinite loop (perhaps a seg fault). Good times!

  16. Use $content_width to Set Width of oEmbeds in WordPress

    If you want resulting oEmbed code to scale to a specific size (width) in WordPress, you can do this really easily by setting the $content_width global variable before calling your oEmbed processing. Example: global $wp_embed, $content_width; $content_width = ’600′; // set to desired width $string_with_embedded_content = $wp_embed->autoembed($string_with_oembed_url); I only recently ran across this feature (just…

  17. Detecting Lightboxed Pages in WordPress Admin

    When you want inject something into the WordPress admin, you might not think to account for pages that load inside lightboxes (plugin updates, media upload, etc.). Generally, you don’t want to add your JS/CSS/etc. to these pages. To check for this type of page load, you can check for the IFRAME_REQUEST constant. View the code…

  18. WordPress Code Snippet to Detect “Main” Loop

    Cribbed from the WP-Hackers list, the following sample code should give you a good way to test if the current “in the loop” action is within the main loop or a different loop: function main_loop_test($query) { global $wp_the_query; if ($query === $wp_the_query) { echo “main loop”; } } add_action(‘loop_start’, ‘main_loop_test’); Thanks Nacin and Konrad. This…

  19. Hiring: PHP Developers in Denver, CO

    Want a fun and challenging work environment? Want to build stuff on the cutting edge with and for WordPress? At Crowd Favorite we build cool things for the web. We get to play with the entire web stack, from back-end API architecture to advanced front-end HTML5, CSS and jQuery interfaces. We are hiring immediately for…

  20. Wanted: Technical Project Manager

    I’m looking for a bright, motivated individual to join our team as a project manager. At Crowd Favorite we build cool things for the web. You will join us to enjoy the privilege of working with great clients and a sharp and dedicated team on fun and challenging projects. The project manager position is a…

  21. WordPress 3.1.2

    Security update – time to upgrade! While this particular security patch won’t affect all WordPress sites (for example, it didn’t affect this one since I don’t have contributors), I highly recommend upgrading every time a new version comes out. Small upgrades are much easier than big upgrades. Don’t be that poor soul who puts it…

  22. Audience vs. Content

    This past weekend I had the opportunity to be interviewed at WordCamp Seattle. It was great to catch up a little with some fellow WordPress developers and a nice opportunity to share a little about the good fortune I’ve had to be a part of the WordPress project. In preparing for the interview, Nick Ohrn…

  23. Speaking at WordCamp Seattle

    I’m quite looking forward to returning to my hometown for WordCamp Seattle on April 16th. I am honored to have been asked to participate along with a great list of speakers. I’m going to be interviewed by Nick Ohrn and look forward to sharing my experiences with WordPress, creating Crowd Favorite and running a business…