• Resolved morvy

    (@morvy)


    Hi,

    I’m trying to add filters on a small shop, but nearly all filters I add won’t allow me to save the filter, because it claims the term is used. I’ve checked wp_terms and there is no such term or taxonomy. Is there any other place I should check to find the conflict?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter morvy

    (@morvy)

    OK so I found the problem. You’re using mb_strpos( $name, $prefix . ‘-‘ ) but this also matches any term that starts with such prefix. For example I have ‘chut’ (taste) that I want to use in the filter, but I have attribute ‘chut-kavy’ which matches the prefix.

    Is the only option renaming all my attributes to use underscore instead of dash?

    Plugin Author stepasyuk

    (@stepasyuk)

    Hello @morvy

    Thank you for using Filter Everything.

    This message means that you tried to use “Var Name for URL” that matched to your existing taxonomy name (not term name).

    For example you have taxonomy “dress-size” and tried to set “Var Name for URL” “dress”. In this case Filter Set validator will not allow to use “dress” as “Var Name for URL” (or as URL prefix in PRO version).

    So you don’t need to rename all your taxonomy terms, but just use the prefix that does not match to the “taxonomyname-

    Regards.

    Thread Starter morvy

    (@morvy)

    Thanks for your reply.

    Yes I got the point from source code. I wish there was a simpler solution .. I wanted to keep the url as short and meaningful as possible, so either I rename all taxonomy slugs and have short filter slugs, or I just use long slugs for filters that won’t collide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot add filter because of “used” term’ is closed to new replies.