Skip to:
Content
Pages
Categories
Search
Top
Bottom

Include wordpress pages in bbpress forum search

  • @uschesch

    Participant

    I have my wordpress search configured to include bbpress forum topics; however, the bbpress search only searches forums topics. How do I include wordpress pages in the forum search?

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @robin-w

    Moderator

    Try adding this to your functions file:

    function amend_bbpress_search ($args) {
    $args[‘post_type’] = ‘any’ ;
    return $args ;
    }

    add_filter (‘bbp_before_has_search_results_parse_args’ , ‘amend_bbpress_search’) ;

    Functions files and child themes – explained !

    @uschesch

    Participant

    Hi Robin,

    thanks for the quick reply. Unfortunately, the code did not work. When I enter text that I know is in a wordpress page into the forum search box, I get a list of forum topics, and that list disappears. When the list disappears, I get a no post found message.

    https://www.dropbox.com/s/8xv3qblzumnh16s/forumsearch.PNG?dl=0

    @robin-w

    Moderator

    ok, so that didn’t work, sorry at the limit of my knowledge in search!

    @uschesch

    Participant

    No need to be sorry. Appreciate your attempt!!

    @uschesch

    Participant

    Has anyone else successfully configured the bbpress search to include WordPress pages? Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar