create taxonomy

Taxonomy.php is the default template that displays how custom taxonomies display in the browser. They aren’t how you create a new taxonomy. This is done by using the function register_taxonomy() in functions.php. WordPress has created a whole codex page on the topic available here. SmashingMag has a great tutorial on it as well (it’s actually … Read more

wordpress taxonomy results

have_posts() iterates over all posts found and actually returned in the query which depend in the posts_per_page parameter. And for your second question, using query_posts() does overwrite the query and its not really the recommend method to alter or modify the query result, here is a nice question that explains better ways : When should … Read more

Custom built theme won’t filter categories

The variable $theTitle is not interpolated in a single quote string. query_posts(‘category_name=.$theTitle&orderby=rand’); Will ask for exactly that string. $theTitle will not be replaced with a title and the dot (.) will remain in the query. The result will be unpredictable. So, use a double quoted string: query_posts( “category_name={$theTitle}&orderby=rand” ); Or change the order of the … Read more

How to show tags in posts with a theme that does not do it

Filter the_content, and add the result of get_the_tag_list(): add_filter( ‘the_content’, function( $content ) { if ( is_single() ) $content .= get_the_tag_list( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’ ); return $content; }); The other option is to create a child theme and add the_tags() where you need it in a template.

Categorising themes by folders in backend

Updated plugin version available at GitHub. I first saw your Question at [wp-hackers] list, and, after implementing the solution, was about to publish a Q&A for that. Well, it’s already here, and has a bounty put on it 🙂 As Daniel Bachhuber points out in the thread: WordPress.com puts themes inside of subdirectories /wp-content/themes/public /wp-content/themes/premium … Read more