Skip to:
Content
Pages
Categories
Search
Top
Bottom

Why won’t Buddypress search posts?

  • @boobleay

    Member

    In the header search area, I only have options to search members, groups, etc. I actually need the opposite; I only want to search *posts* on the main blog and return those results, with no options to search anything else. How can I do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @zen-gonzaga

    Member

    have you figured this out? try this and tell me if it works..
    `

    <form method="get" id="searchform" action="/”>
    <input type="text" value="” name=”s” id=”s” />
    <input type="submit" id="searchsubmit" value="” />

    `

    @djpaul

    Keymaster

    I think these have a filter. Are we talking about the search box at the top of the templates, in the blue header area?

    @boobleay

    Member

    Yes, Paul, that’s the one.

    I was able to get what I needed by copying a search form from wordpress (it only searches posts and pages), and then activating a plugin which prevents pages from being searched so that only the posts are searched.

    Zen, I will also try your form and see which result works better for me. Thanks for that.

    @firat-dede

    Member

    Hi Mr. Zen,

    Where will we add this php scripts? Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why won’t Buddypress search posts?’ is closed to new replies.
Skip to toolbar