Core Functions

caching patterns WordPress

Caching complex queries

At a certain point of our WordPress learning path we need to learn the art of caching. Here I’m presenting some cache patterns that I use when developing in WordPress. Welcome to the first post on the Patterns series.

WordPress 3.7 behind the obvious

WordPress 3.7 “Basie” is out! So, where should we start after upgrading? There are so many things going on with the new WordPress version that it is hard to go through everything in a post. For sure, this version is a quantum leap into the vision of making WordPress upgrades as silent as Chrome browser

Post Type Archive issue

I’ve been struggling with this identified core bug regarding the post_type_archive_title() function which also affects the wp_title(). With debug mode on, hereby the messages I’m getting: PHP Notice: Undefined property: stdClass::$labels in /wp-includes/general-template.php on line 700 PHP Notice: Trying to get property of non-object in /wp-includes/general-template.php on line 700 I’m trying to load the custom post

get_page_uri for all types

Lately, I’ve been struggling a lot with permalinks, permastructures, hierarchy slugs, and so on, for a plugin I’m working on. During these days of core reading I’ve bumped into a function called get_page_uri(), a super simple function but still deserving a full post about it. From the Codex you’ll get: Builds and returns a URI for