What is your permalink structure?
Thread Starter
Saroj
(@sarojlakra)
Project Site Here i have changed the above link code , it gives ID something like this category/54 .I want to change that ID with category name like this one category/icons/
Please don’t change the link code. It works fine for me with categories at least. Follow this link:
http://vectshare.com/?cat=64
it get’s rewritten to:
http://vectshare.com/category/fashion/
What exactly is the problem?
WordPress 3.0 and every previous version for that matter queries for categories by ID and other taxonomies by slug.
Thread Starter
Saroj
(@sarojlakra)
thanks for supporting Michael
Thread Starter
Saroj
(@sarojlakra)
changed to original link code,This time category taxonomy working well but other two custom taxonomies are nor rewriting the link structure
for File format taxonomy with fileformat slug fileformat/ai/normally works well.
same problem with License taxonomy with license slug
after changing back to original link code it gives /?file_format=ai which is not rewriting to at-least /file_format/ai/
Please paste the code which you used to register your fileformat taxonomy.
Thread Starter
Saroj
(@sarojlakra)
created with the help of this plugin
Would you be open to using custom code?
How do you download it? I can’t find the link π
Thread Starter
Saroj
(@sarojlakra)
changing the code again works but not flexible
function get_query_var_name( $taxonomy ) {
if ( $taxonomy === 'file_format' )
return 'fileformat';
if ( $taxonomy === 'category' )
return '?cat=';
if ( $taxonomy === 'post_tag' )
return 'tag';
else
return $taxonomy;
}
if ( this.options[this.selectedIndex].value != 0 && this.options[this.selectedIndex].value != -1 ) {
location.href = "{$url}/" + this.name + "/" + this.options[this.selectedIndex].value;
}
Thread Starter
Saroj
(@sarojlakra)
problem solved after editing plug-in codes.
Thanks Michael
Which plugin to you modify? Be sure to change the name to avoid conflicts with upgrades π
Thread Starter
Saroj
(@sarojlakra)
that’s your widget taxonomy-widget.php