Custom Taxonomy Term Caching?
There are some bugs related to hierarchical term caching, indeed: http://core.trac.wordpress.org/ticket/14704 http://core.trac.wordpress.org/ticket/14485
There are some bugs related to hierarchical term caching, indeed: http://core.trac.wordpress.org/ticket/14704 http://core.trac.wordpress.org/ticket/14485
You can use the Advanced Taxonomy Terms Order it’s a great plugin for terms order
I think you can go about the filter list_terms_exclusions, but i don`t tested. example: function fb_list_terms_exclusions($args) { if ( ‘media-upload-popup’ != $where ) return $where; if ( !current_user_can(‘manage_categories’) ) $where = ” AND t.slug NOT IN (‘uncategorized’, ‘category-2’)”; // slug of categories return $where; } add_filter( ‘list_terms_exclusions’, ‘fb_list_terms_exclusions’ ); update for the comments to this … Read more
Problem is that you’d need to pass a $post->ID in order to not return false. Better use is_object_in_taxonomy($object_type, $taxonomy) and fill both the term and the tax in the function. It returns (boolean), so simply add your class based on the result: echo $class = is_object_in_taxonomy( ‘news’, ‘your_taxonomy’ ) ? ‘current-whatever’ : ”; // or: … Read more
Just change the action attribute of your search form in your theme, for example; <form action=”<?php echo home_url( $GLOBALS[‘wp’]->request ); ?>” method=”get”> This will dynamically output the URL of the current request, so that when a user searches, the query string is simply appended to it, rather than pointing back at the root.
Michael Fields built the perfect plugin for this: http://wordpress.mfields.org/plugins/taxonomy-images/
For question one, reading the following from the codex makes me think you need to change hierarchical to 1: depth (integer) (optional) The max depth. This is ignore unless hierarchical is set to true. Default: 0/False hierarchical (boolean) (optional) Display all categories (0/False) or display categories (1/True) to a depth of ‘depth’. Default: 0/False
The only way to do this is to return the tag cloud as an array since every other tag parameter will still add inline font-sizing. To return the cloud as an array you can use <?php $tag = wp_tag_cloud(‘format=array’ );?> or in a functions.php filter, //tag cloud custom add_filter(‘widget_tag_cloud_args’,’style_tags’); function style_tags($args) { $tag = wp_tag_cloud(‘format=array’ … Read more
the_terms() echoes output. To assign output to a variable and check if there is any you need to use get_the_term_list() instead. Note that it might also return WP_Error object (which won’t be empty) so you will need to check for it as well with is_wp_error().
My solution at the moment is to use a GET variable to request a different page template: Regular version of taxonomy page: mysite.com/subjects/science Blog version of taxonomy page: mysite.com/subjects/science?view=blog To handle the ?view=blog variable, I add this conditional to the top of taxonomy.php (or taxonomy-subjects.php and any other taxonomy-{slug} that I want to have an … Read more