Skip to:
Content
Pages
Categories
Search
Top
Bottom

include group meta in search


  • nit3watch
    Participant

    @nit3watch

    If I wanted to include a group meta field in the group search, say we wanted to include the group tags, ( gtags_group_tags ) how could this be done? Iv’e looked at the search query but dont quite understand how it works, like what the name=”s” is for.. Maybe if someone could explain it a bit to me I could then play around. Ill ganna have a look at brajesh’s sitewide search aswell and see if I ‘catch on’.

    My other option is going with google custom search, though I wouldn’t pay for the ‘non-adds one’ and would really like to steer clear of external ads also being able to return the results in the ‘buddypress fashion’, ( group avatar, description.. )

    Also on the subject, in the future it would be nice to see something like the group search ( all the forms, just using group as an example ) form be able have ‘search values’ input-ed kinda, like the form will check your plug-ins for values and include them in the search.


    function bp_directory_groups_search_form() {
    global $bp;

    $search_value = __( 'Search anything...', 'buddypress' );
    if ( !empty( $_REQUEST ) )
    $search_value = $_REQUEST;

    ?>


    <input type="submit" id="groups_search_submit" name="groups_search_submit" value="" />

    <?php
    }

  • The topic ‘include group meta in search’ is closed to new replies.
Skip to toolbar