I use Relevanssi premium plugin for search feature on my website. The problem is that uploaded documents on forum appear by default in the search results and this should not be the case, as there are private and absolutely not relevant documents for the website.
How do disable or prevent forum attachments to figure in the search results?
Attachments are uploaded using Media Library (that is clearly stated in plugin information), so they are part of it. WordPress doesn’t have private files system, so attachments are no exception. I plan to implement really private files for forums, but that will be done only in GD bbPress Toolbox Pro plugin (hopefully by the end of this year).
In this case, do you have an idea of how to create a filter function that lets through the attachments I want to include, but blocks bbPress attachments? Is there a way to tell from the database entry which attachments should be blocked and which should be allowed?