The Group Search Shortcode allows you to display the Group Search form (and/or results) on any page.
Usage #
[ccbpress_group_search]
Below are a list of parameters that you can use to modify the output.
- campus_id (integer) – Specify the default campus.
- area_id (integer) – Specify the default area.
- meet_day_id (integer) – Specify the default meet day.
- meet_time_id (integer) – Specify the default meet time.
- department_id (integer) – Specify the default department
- group_type_id (integer) – Specify the default group type.
- udf_1_id (integer) – Specify the default for UDF 1.
- udf_2_id (integer) – Specify the default for UDF 2.
- udf_3_id (integer) – Specify the default for UDF 3.
- childcare (0/1) 0 = No, 1 = Yes. Default is 0. – Specify the default option for childcare.
- exclude_full (0/1) 0 = No, 1 = Yes. Default is 0. – Specify the default for excluding full groups.
- hide_search_form (“true”/”false”) Default is “false”. – Whether or not to hide the search form.
- auto_search (“true”/”false”) Default is “false”. – Whether or not to automatically display the results when the page is loaded.
Example #
For example, to set the default area, exclude full groups, auto search, and hide the search form:
[ccbpress_group_search area_id=2 exclude_full=1 hide_search_form="true" auto_search="true"]