I am developing a law blog for law students on a WP 3.2.1 installation. I have a search form with a toggable advanced search feature that allows users to search by category, tag, and/or author. I’m using
wp_dropdown_categories()for the first two, and
wp_dropdown_usersfor authors. To avoid parameter overriding between cats and tags, I’m leaving
catas the default name attribute for categories and using
tagfor tags. For authors, I’m using
author, as this is already in use by WP.
The feature works great when Relevanssi 2.9.11 is deactivated, but when it is activated, the author parameter stops working, and I get the same search results for all values (0, -1, or any other one). The other parameters work well both alone and in combination, except when a parameter is set for author, of course.
I really like the plugin because it expands the reach of the default WP search tool, but I need this feature to work, so if anyone has any idea as to how to solve this, please let me know.
To finish, here are some of my Relevanssi options that might be relevant:
Default operator for search?: AND;
Default order for results: Relevance;
Exclusions and/or Restrictions: None;
Create custom search result snippets: Checked;
Thanks in advance!
Relevanssi doesn’t support searching by author; it has never crossed my mind that it would be necessary and apparently nobody has tried it before, as you’re the first one to even mention it.
Clearly an oversight from me, I’ll fix this in the next version.
Thank you very much for your very prompt reply.
In all honesty, I worked on different WP sites and this is the first time it ever occurred to me to search by author, so it’s really Ok. On the other hand, I think it could be a nice added plus to the plugin and, also, very useful for sites with multiple authors.
Thank you for considering fixing this. I think that the fact that WP already has this functionality should make things easier for you.
I wrote the code already, as soon as I get the next version wrapped up it’ll work. Couple of days, maybe.
That is great news, msaari. Thank you for the awesome support.
I’ll stay alert for the next release, 😉
Sorry, I’ve been incredibly busy with other stuff. Can’t promise anything right now, I’m drowning in work at the moment.
Just released 2.9.12, which will fix this.
Thanks a lot for this.
I’ll run some tests and let you know.
- The topic ‘[Plugin: Relevanssi – A Better Search] Relevanssi plugin breaking author parameter?’ is closed to new replies.