Theme Check gives: Required: This theme doesn’t seem to display tags?

You need to be using one of these functions to display a list of tags associated with the post: the_tags() get_the_tag_list() get_the_term_list() Otherwise the check will fail. If you’re building this theme for use with a project that doesn’t need tags, don’t bother adding support. If you’re intending on uploading it to WordPress.org for review, … Read more

Custom attribute for the title tag with wp_title()

Since all _wp_render_title_tag does is check for title-tag theme support and wrap in <title> tags, there is really no reason why your existing implementation “shall not pass”, since the proper implementation is already identical via: <title itemprop=”name”><?php echo wp_get_document_title(); ?></title> when _wp_render_title_tag does: echo ‘<title>’ . wp_get_document_title() . ‘</title>’ . “\n”; (since Theme Check is … Read more

Is there a way to set the order of wp_footer hooked functions?

The recommended way is to call your function inside the .js file you are enqueuing. Is there any reason you can’t do that? If you need access to dynamic data like WP options from within your script, use wp_localize_script to initialize a javascript object with the data you need: $data = array(‘some_option’ => get_option(‘an_option_from_my_theme’)); wp_enqueue_script(‘your_script_handle’, … Read more

How wp_cache is supposed to work, and does it help with performance?

In WordPress v2.5+ the object cache is not persistent. It will save things in memory, but for persistent caching across page loads you will need a plugin see here: http://codex.wordpress.org/Class_Reference/WP_Object_Cache#Persistent_Caching Alternatively, use transients, which are persistent. The identifier must be 45 or less characters long, but the data attached to that identifier can be longer. … Read more

function_exists call in function.php

That twentyeleven_setup function, and others like it, are pluggable – meaning that they can be overridden by a child theme. The child theme’s version of a function with that same name will be parsed first, so the parent theme’s version will not be run at all. In TwentyTwelve some functions are not pluggable, but instead … Read more