Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_nouveau search form


  • mikelast
    Participant

    @mikelast

    Hi guys,

    I used to be able to filter the search form html that appears on the group directory page, but I cannot figure out how to achieve the same result when using the new bp_nouveau theme.

    So far I have tried

    add_filter('bp_directory_groups_search_form', 'modifyGroupSearchForm', 10, 1);
    add_action('bp_directory_groups_search_form', 'modifyGroupSearchForm', 10, 1);

    But neither worked. What I need to do is find a way to pass the group_type parameter to the bp_ajax_querystring filter. Atm I have hard coded a select dropdown with the custom group types I created using bp_groups_register_group_type I am then using

    <select id="groupTypeSelect">
            <option>Select a group category</option>
    		<?php foreach ( $group_types as $group_type_slug => $group_type ) : ?>
                <option value="<?php echo esc_attr( $group_type_slug ); ?>"
                        data-group-type="<?php echo esc_attr( $group_type_slug ); ?>"><?php echo esc_attr( $group_type->labels['name'] ); ?></option>
    		<?php endforeach; ?>
        </select>

    to output the group types to the page, but I need a way to tie them back into the standard bp group search

  • You must be logged in to reply to this topic.
Skip to toolbar