Viewing 15 replies - 1 through 15 (of 27 total)
  • Plugin Author Michael Fields

    (@mfields)

    What is your permalink structure?

    Thread Starter Saroj

    (@sarojlakra)

    /%category%/%postname%/

    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/

    Plugin Author Michael Fields

    (@mfields)

    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/

    Plugin Author Michael Fields

    (@mfields)

    Please paste the code which you used to register your fileformat taxonomy.

    Thread Starter Saroj

    (@sarojlakra)

    created with the help of this plugin

    Plugin Author Michael Fields

    (@mfields)

    Would you be open to using custom code?

    Plugin Author Michael Fields

    (@mfields)

    How do you download it? I can’t find the link πŸ™

    Thread Starter Saroj

    (@sarojlakra)

    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

    Plugin Author Michael Fields

    (@mfields)

    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

Viewing 15 replies - 1 through 15 (of 27 total)
  • The topic ‘[Plugin: Taxonomy Widget] Dynamic link instead of javascipt link’ is closed to new replies.