WordPress.org

Support

Support » Plugins and Hacks » Bug to filtering Custom post type or taxomony

Bug to filtering Custom post type or taxomony

  • it seems there are a bug with filter. For some custom type i filter as supplier
    the filter dropdown display twice time, and i get no result

    Exemple :
    edit.php?s&post_status=all&post_type=catalogs&action=-1&cover_suppliers=0&suppliers=my-suppliers&lang=fr&seo_filter&paged=1&mode=list&action2=-1
    but if i replace in the url (http) the suppliers slug but his id, i get the results. I think it’s not appropriate to use slug because if you have same slug, or composed slug, the filter doesn’t find results

    foreach ($terms as $term) {
                $taxonomy_type_group .= sprintf('<option value="%1$s" %2$s >%3$s</option>'
                    , $term->term_id
                    , $_GET[$tax_obj->query_var] == $term->term_id ? 'selected="selected"' : ''
                    , $term->name
                );
    			//var_dump($term);
            }

    What do you think ?

    http://wordpress.org/extend/plugins/easy-filter/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Roni Saha

    @ronisaha

    Hi!
    Thanks For your concern!
    But I can’t reproduce your steps. The Custom type filtering was working fine for me.
    The slug is the default wordpress system to work with. So, that should always work fine. Its the way wordpress create its query string.
    If i replace the slug with id, I need to change the query var my self. wheres using slug, wordpress does the work.

    Anyway, I’ll try with different data set if i could reproduce the non-working state. If you can provide any detail step That may help me to find out the problem.

    Thanks again

    Bye

    i have same problems with my multilangual site and i used CPT-onomies with relationships beetween custom post types, and in fact, for somes items when there are slug as (my-first-item, my-first-item-2)
    The filter can’t find results, ID is better.

    Maybe you can add this fix in your FAQ

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug to filtering Custom post type or taxomony’ is closed to new replies.