• Jason Davis

    (@jasondavis916)


    I’m trying to do a search, and I need to add in a custom table for it to look at. I tried used the filter “relevanssi_modify_wp_query” and it doesn’t seem to fire. All of the other ones are working fine.

    Also, I tried use the WP hooks like “posts_selection”,”posts_join” and “posts_clauses”, those don’t seem to modify my search when I look at the final query with the “relevanssi_query_filter” hook

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yes, Relevanssi doesn’t use “posts_selection”, “posts_join” or “posts_clauses”. Those won’t do anything with Relevanssi.

    Check the “relevanssi_search_ok” filter hook. Is that firing, and is it showing true? Is the search being powered by Relevanssi in the first place? There can’t really be a case where Relevanssi is running fine and “relevanssi_modify_wp_query” is not running, unless you’re invoking Relevanssi directly with relevanssi_do_query() (in which case you don’t need “relevanssi_modify_wp_query”).

    Can you show me your “relevanssi_modify_wp_query” code? What are you planning to do with the custom table?

Viewing 1 replies (of 1 total)
  • The topic ‘relevanssi_modify_wp_query not working’ is closed to new replies.