jharder
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Custom Post Type TaxonomyNo kidding! I can either get categories with posts (but no category hierarchy) or hierarchical categories (but no categories).
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Custom Post Type TaxonomyI tried the suggestions above, but no luck. The category URLs are still not correct. Maybe the problem is in how I am registering my taxonomy? Here’s the code I’m using:
function create_transitshare_taxonomies() { register_taxonomy( 'transitshare-category', 'transitshare', array( 'hierarchical' => true, 'label' => 'transitSHARE Categories', 'rewrite' => array("slug" => "transitshare-category") ) ); }
That said – I think the bigger issue is getting posts from a custom post type. I tried changing the post_type from ‘post’ to ‘name of my custom post type’ in line 103 of wp-dtree-cat.php but no luck there either.
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Custom Post Type TaxonomyCool. Thanks ulfben. With your suggestion I should be able to work out the solution. I will post it here if I do.
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Custom Post Type TaxonomyCodex page on custom taxonomy (aka custom categories) https://codex.www.ads-software.com/Taxonomies#Custom_Taxonomies
Codex page on post types (pretty much the main attraction for WP 3.0 imo)
https://codex.www.ads-software.com/Post_Typeswp_list_categories has a taxonomy arg (ie taxonomy=my_taxonomy) which will return only categories from that specified category group. Works like a charm. Using the wpdt_list_categories with the same arg returns the correctly filtered category names, but the links are all written as href=mysite.com/category instead of href=mysite.com/custom-category-name
Forum: Plugins
In reply to: [WP-dTree] [Plugin: WP-dTree] Custom Post Type TaxonomyCorrection: Post count is working, but I cannot display post names (even with listposts=1 in my args) and the category names are not linking properly