• Hey,

    I would like to know if there is a way to filter hidden or private topics of the bbPress forums.

    I searched but did not find any solution.

    • This topic was modified 5 years, 3 months ago by flow1992. Reason: made the post clearer

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Ajay

    (@ajay)

    I’m not familiar with how bbPress does this, but conceptually, you might need to write an extra query filtering bsearch_posts_where that adds an extra clause e.g. https://gist.github.com/ajaydsouza/767215093a24bafb903a#file-bsearch-meta-field-php-L18

    Thread Starter flow1992

    (@flow1992)

    Okay, thank you!

    I try this today, I have 6 years experience with c# but I am really new at web development and WordPress, so maybe I just reply to this thread once I stuck.

    Thread Starter flow1992

    (@flow1992)

    I didn’t understand how it’s declared as a hidden topic, the variable hidden doesn’t show up in the DB, it has something to do how buddyPress and bbPress is working together.

    I hope someone with more experience solves this issue because every search plugin I tested, doesn’t filter these hidden topics which are created when someone post in a hidden group a topic.

    I disabled the topic search for now if someone wants to search for topics he has to use the bbPress Forums search which filters these hidden topics, seems to be the best option for me.

    But I really like Better Search because it has a GPL license and good support.

    • This reply was modified 5 years, 3 months ago by flow1992.
    Plugin Author Ajay

    (@ajay)

    @flow1992

    If the default bbPress Forum search works, you could try a bit of testing. I’m a big fan of Query Monitor that will show you the SQL queries generated on a page e.g. on the search results page of your forum.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter private or hidden topics in the search’ is closed to new replies.