Skip to:
Content
Pages
Categories
Search
Top
Bottom

Merge Buddypress Search & WordPress search together


  • bergblume
    Participant

    @bergblume

    Hi can I use one search forum (I know that there exist global search plugin) together for Buddypress Activity Search and normal WordPress Posts Search?
    The wordpress search is domain.com/?s=searchterm
    The Search for Buddypress is domain.com/activity/?s=searchterm
    how can I get them together by coding?

Viewing 1 replies (of 1 total)

  • bergblume
    Participant

    @bergblume

    I found the solution. As in Buddypress also the normal wordpress posts are published you only have to edit this file searchform.php in your themes folder (add there /activity/ behind home_url ) to:

    <form role="search" method="get" id="searchform" action="<?php echo home_url( '/activity/' ); ?>">
    	
    	<div class="input-group">
    		<input name="s" id="s" autocomplete="off" type="text" class="ajax_s form-control input-sm" value="<?php echo get_search_query(); ?>">
    		<span class="input-group-btn">
                <input type="submit" value="<?php _e("Search");?>" id="searchsubmit" class="button">
    		</span>
    	</div>
    
    </form>
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar