[wp-trac] [WordPress Trac] #13058: Feed link not working with non-category taxonomy in wp_list_categories()
WordPress Trac
wp-trac at lists.automattic.com
Thu Apr 29 22:47:08 UTC 2010
#13058: Feed link not working with non-category taxonomy in wp_list_categories()
--------------------------+-------------------------------------------------
Reporter: greenshady | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Feeds | Version: 3.0
Severity: normal | Keywords: has-patch needs-testing
--------------------------+-------------------------------------------------
Comment(by blepoxp):
If anyone wants to test this for me with various permalink structures or
whatever, here's some code:
Put this in your theme's functions.php
{{{
function testers(){
register_taxonomy( 'people', 'post', array( 'hierarchical' =>
false, 'label' => 'People', 'query_var' => true, 'rewrite' => true ) );
}
add_action('init','testers');
}}}
Put this in sidebar.php
{{{
<ul>
<?php wp_list_categories( array( 'taxonomy' => 'people' , 'feed'
=> 'rss')); ?>
</ul>
}}}
Then go to create / edit posts and add at least one with a person
taxonomy. At that point, links should show up in your sidebar and the RSS
link should link to the feed of posts in that term/taxonomy. (I also
tested changing the query_var arg)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13058#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list