I have a membership site where I am using Wishlist membership plugin. There are few Courses for which the user signed up and after signing up, they can get access to different modules and their corresponding lessons. All these lessons have multiple videos, files and pdfs attached to them via custom meta boxes( values are getting stored as serialized array in wp_postmeta table ). Moreover, each user can add his/her notes for each specific lessons( values are getting stored in a custom notes table ).
Now, I have to add Search feature on my site which should search for the following things:
- Post Content
- Post Comments
- Custom Meta boxes which consists of different video links, excel file links and pdfs links.
- Notes which user adds
- Spoken words in Videos
I have tried implementing Relevanssi Pro Search plugin for this since it searches values for custom meta fields as well. But, the result is not satisfactory at all.
Can anyone please suggest some good search plugin for this or do I need to go for some custom search solution for this?
There is no easy way to do this without modifying the main search query that was generated by wordpress. I think you should go for
posts_search
&posts_join
hook. They are located inwp-includes/query.php
Do a
var_dump
first to see what you are getting & modify accordingly. Here’s some untested code i could put up right now to get you started.