diff --git a/CHANGELOG.MD b/CHANGELOG.MD index b8b4a62..c68ab87 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- TMS-1088: Change program dates to be queryable by redipress + ## [1.9.1] - 2024-11-06 - TMS-1075-fix: Program page query fix diff --git a/lib/ACF/ProgramGroup.php b/lib/ACF/ProgramGroup.php index f48e1b0..a792581 100644 --- a/lib/ACF/ProgramGroup.php +++ b/lib/ACF/ProgramGroup.php @@ -223,14 +223,16 @@ protected function get_info_tab( string $key ) : Field\Tab { ->set_name( 'apply_start' ) ->set_return_format( 'Y-m-d' ) ->set_wrapper_width( 50 ) - ->set_instructions( $strings['apply_start']['instructions'] ); + ->set_instructions( $strings['apply_start']['instructions'] ) + ->redipress_add_queryable(); $apply_end_field = ( new Field\DatePicker( $strings['apply_end']['title'] ) ) ->set_key( "{$key}_apply_end" ) ->set_name( 'apply_end' ) ->set_return_format( 'Y-m-d' ) ->set_wrapper_width( 50 ) - ->set_instructions( $strings['apply_end']['instructions'] ); + ->set_instructions( $strings['apply_end']['instructions'] ) + ->redipress_add_queryable(); $apply_info_field = ( new Field\Text( $strings['apply_info']['title'] ) ) ->set_key( "{$key}_apply_info" )