Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author AndrewUlrich

    (@andrewulrich)

    you might be able to tack on something like query .= ‘AND p.ID <> ANY (SELECT * FROM ‘.$wpdb->prefix.’term_relationships WHERE term_taxonomy_id = ‘.$excluded_id; right after line 340 in faceted-search.php. You would then just get the $excluded id from $_POST. That would be a starting point for you.

    Oh, please could you explain this to a person who doesn’t know php?
    How to exclude multiple categories (say ID=16 and ID=18)? Huge thanks in advance!

    Plugin Author AndrewUlrich

    (@andrewulrich)

    Version 3.2 has this functionality now.

    James

    (@james-callaway)

    can you set it up so that this function actually works?

    Plugin Author AndrewUlrich

    (@andrewulrich)

    Is something not working for you, or do you mean you want more specific instructions?

    James

    (@james-callaway)

    lol turns out more specific instructions would have done the trick. I was trying to put a list of cat id’s when I should of been putting the cat name…. who knew?

    Plugin Author AndrewUlrich

    (@andrewulrich)

    Oh, I see. Glad it’s working for you after all! I’ll try to remember to clarify that in the FAQ for the next release.

    I found a problem in faceted-search.php, line 501 and 503 needed to replace “name” with “term_id”. now it works well.

    Plugin Author AndrewUlrich

    (@andrewulrich)

    Hi aleyho, I think you’re doing the same thing James Callaway was doing, which is putting the term id’s into the list rather than the term names. That’s fine if you modify the code in the way you specified, but the intended purpose was to put in the term names.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Faceted Search] Exclude Categories?’ is closed to new replies.