Easy Filter
Bug to filtering Custom post type or taxomony (3 posts)

  1. sireneweb
    Posted 3 years ago #

    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 :
    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

    What do you think ?


  2. Roni Saha
    Plugin Author

    Posted 3 years ago #

    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


  3. creativexperience
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Filter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.