How do I create a custom archive page depending on the custom taxonomy type?
Create a template file called taxonomy-productCategories.php. For more information, see the Template Hierarchy. I find this image particularly helpful.
Create a template file called taxonomy-productCategories.php. For more information, see the Template Hierarchy. I find this image particularly helpful.
The value for global_terms_enabled for multisite is stored in wp_sitemeta http://wordpress.org/support/topic/plugin-edit-category-slug-wpmu-how-to-make-it-work-with-last-wpmu-30 I switched this to off and the category slug field reappears. If anyone can comment on whether its safe to switch this off, that would be greatly appreciated.
This is far from trivial. URL processing is not straightforward and mostly buried in WP->parse_request() which is not popular to reuse. There is more useful url_to_postid() function, but it’s limited to posts and does not process URL to other things. If really necessary this would take fork of that function to deal with terms. However … Read more
As Bloch commented, 3.1 provides a way to easily accomplish this. Here’s a terrific article describing exactly how to execute advanced taxonomy queries. Here’s the plugin to run the 3.1 beta. Here is some slightly modified code from an example in the advanced taxonomy queries article: $adcatquery = wp_parse_args( $query_string ); $adcatquery[‘tax_query’] = array( array( … Read more
I’ve made some progress based on walker classes but havent gotten ti working quite as needed because wordpress doesnt appear to handle the root nodes of the taxonomy tree in the same way as the child ones. As a result, it prunes the end menu items, but if the parent of that node is a … Read more
Figured this out by using this code: function override_is_tax_on_post_search($query) { global $pagenow; $qv = &$query->query_vars; if ($pagenow == ‘edit.php’ && isset($qv[‘taxonomy’]) && isset($qv[‘s’])) { $query->is_tax = true; } } } add_filter(‘parse_query’,’override_is_tax_on_post_search’);
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’ve explored both options, using custom fields and a custom taxonomy, in previous versions of my plugin, Posts 2 Posts. The latest version uses two custom tables.
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