BP Profile Search
BP Profile Search is a member search and member directories plugin for BuddyPress. It provides: A form builder to build the member search forms The [bps_directory] shortcode to customize the BuddyPress Members directory, or to build additional member directories Each search form has a target directory. When you run a search, you are redirected to the form’s target directory, filtered according to your search. Build a search form With the form builder you can: Add, edit, rearrange, and remove the search fields Use as search fields the BuddyPress profile fields, the users and usermeta data (including roles), the BuddyPress user groups, and the user taxonomies (including BuddyPress member types) Use search by distance fields when you install the free companion plugin BP Distance Search Select, for each search field, one of the available search modes Select the BuddyPress Members directory, or one of the member directories built with this plugin, as the target directory Select the form template to display your form If in doubt, use the Help tab above the screen title The form template works just like any other BuddyPress template. To override a form template, copy it to the buddypress/members directory in your theme’s root, then edit the new copy according to your needs. Display a search form After you build your search form, you can display it: In its target directory, using the option Add Form to Directory in the form settings In a sidebar or widget area, using the widget Profile Search In a post or page, using the shortcode [bps_form] Run a search On the front-end, when you hit the Search button in a form, BP Profile Search shows the form’s target directory filtered according to your search. Both the All Members tab and the My Friends tab are filtered. Additionally, the plugin: Displays an active filters section containing the active search filters and a Clear button to clear them Displays for each member a member details section containing the values of the searched fields Adds to the Order By drop-down the options to sort the directory by the searched fields The active filters section and the member details section are displayed by two dedicated templates, that can be overridden just like any other BuddyPress template. Build a member directory With the [bps_directory] shortcode you can: Customize the BuddyPress Members directory, or build additional member directories Add hidden filters to a directory Add more sort options to a directory Show additional member information in each member details section, e.g. the value of profile fields Use a different Members directory template for each directory You can enter the shortcode in an empty page to build a new member directory, or you can enter it in the BuddyPress Members page to customize the BuddyPress Members directory. Additional documentation Form Builder Search Modes Custom Directories Form Templates In the screenshots below, the City field is provided by the free companion plugin BP Distance Search.
search-into-subcategories
For Demo go here http://codescar.eu/projects/search-into-subcategories Search-Into-Subcategories plugin allows you to make a select-search shortcode for your own categories. You can use if everywhere you want and make a tree structure for your categories. [search-into-subcategories] Arguments you can pass: parent_category Default is 0 You can list only sub categories of the category id you give here. With 0 lists alla categories max_depth Default is 2 How many subcategories (children of the parent_category) to display, at least 1. search_input Default is 1 Display a text input for search. (You can turn it off with 0 value) labels Default is Labels for the inputs. Give them in the order you want with '|' as separator. example: Category1|Category2|Text search_text Default is Search The text to display in search button. hide_empty Default is 1 Hide categories without content, set to 0 to display all! exclude Default is Category IDs to exclude from listing. Separate them with ','. Example: 6,7,13 show_date_ranges Default is 0 Show from/to date ranges to filter publish date. Set it to 1 to use it. dates_format Default is DD-MM-YYYY It requires the show_date_ranges to be enabled. It uses Pikaday JS Library (a small one) to create a datepicker and manage the date formatting. (If you use spaces into the format, wrap it into single quotes 'like this'). (The formatting is generated by momentJS https://momentjs.com/docs/#/displaying/ ) custom_field Default is null List of custom meta-fields to search in (it will create a new input for every meta-field. ( Use , as separator, example: field1,meta_key,etc ) custom_field_labels Default is null List for labels in custom meta fields text input. (Use | as separator, example: name1|name2|etc) custom_post_types Default is null Post type to filter results posts_per_page Default is null Set result page posts per page custom_taxonomy Default is category Set custom taxonomy to walk. Example: [search-into-subcategories parent_category=0 max_depth=3 search_input=1 labels=cat1|cat2|cat3|Text search_text=Find hide_empty=0 exclude=7,6 show_date_ranges=1 custom_field=author,my_custom custom_field_labels=Author|Custom custom_post_types=documents posts_per_page=10 custom_taxonomy=my_taxonomy dates_format=YYYY-MM-DD]